Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 22, 2021
1 parent 28afbf1 commit 7ea1f1b
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(Object(it), key);
return hasOwnProperty.call(toObject(it), key);
};

0 comments on commit 7ea1f1b

Please sign in to comment.