Skip to content

Commit

Permalink
Merge pull request #928 from jamiebuilds/patch-1
Browse files Browse the repository at this point in the history
Update hasOwn to reflect change in operation order
  • Loading branch information
zloirock committed Apr 22, 2021
2 parents 8e1c655 + 7ea1f1b commit d4f51fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core-js/internals/has.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var toObject = require('../internals/to-object');

var hasOwnProperty = {}.hasOwnProperty;

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

0 comments on commit d4f51fa

Please sign in to comment.