Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 2, 2021
1 parent 1028695 commit 057a0b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core-js/internals/has-own-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ var toObject = require('../internals/to-object');

var hasOwnProperty = {}.hasOwnProperty;

// `HasOwnProperty` abstract operation
// https://tc39.es/ecma262/#sec-hasownproperty
module.exports = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty.call(toObject(it), key);
};

0 comments on commit 057a0b9

Please sign in to comment.