We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Object.hasOwn
has
1 parent 78fc53e commit 43095adCopy full SHA for 43095ad
packages/core-js/internals/has.js
@@ -2,6 +2,6 @@ var toObject = require('../internals/to-object');
2
3
var hasOwnProperty = {}.hasOwnProperty;
4
5
-module.exports = function hasOwn(it, key) {
+module.exports = Object.hasOwn || function hasOwn(it, key) {
6
return hasOwnProperty.call(toObject(it), key);
7
};
0 commit comments