Skip to content

Commit

Permalink
use native Object.hasOwn if it's available in internal has helper
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 26, 2021
1 parent 78fc53e commit 43095ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/has.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ var toObject = require('../internals/to-object');

var hasOwnProperty = {}.hasOwnProperty;

module.exports = function hasOwn(it, key) {
module.exports = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty.call(toObject(it), key);
};

0 comments on commit 43095ad

Please sign in to comment.