Skip to content

Commit 43095ad

Browse files
committed
use native Object.hasOwn if it's available in internal has helper
1 parent 78fc53e commit 43095ad

File tree

1 file changed

+1
-1
lines changed
  • packages/core-js/internals

1 file changed

+1
-1
lines changed

packages/core-js/internals/has.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ var toObject = require('../internals/to-object');
22

33
var hasOwnProperty = {}.hasOwnProperty;
44

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

0 commit comments

Comments
 (0)