UNPKG

434 BJavaScriptView Raw
1'use strict';
2var uncurryThis = require('../internals/function-uncurry-this');
3var toObject = require('../internals/to-object');
4
5var hasOwnProperty = uncurryThis({}.hasOwnProperty);
6
7// `HasOwnProperty` abstract operation
8// https://tc39.es/ecma262/#sec-hasownproperty
9// eslint-disable-next-line es/no-object-hasown -- safe
10module.exports = Object.hasOwn || function hasOwn(it, key) {
11 return hasOwnProperty(toObject(it), key);
12};