Skip to content

Support for Safari 14 and earlier with 5.0.0 #273

@hexadecy

Description

@hexadecy

With the new version 5.0.0 on Safari 14:

TypeError: Object.hasOwn is not a function. (In 'Object.hasOwn(i,P)', 'Object.hasOwn' is undefined)

https://caniuse.com/?search=Object.hasOwn

Can we add a manual polyfill to this lib like:

if (!Object.hasOwn) {
  Object.hasOwn = function(obj, prop) {
    return Object.prototype.hasOwnProperty.call(obj, prop);
  };
}

Or include the supported browser in the README or changelog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions