Checks if value has the specified key as its own property based on Object.prototype.hasOwnProperty result.
value
key
Object.prototype.hasOwnProperty
1.0.0
hasOwn({ a: 2 }, "a");// => true Copy
hasOwn({ a: 2 }, "a");// => true
Checks if
value
has the specifiedkey
as its own property based onObject.prototype.hasOwnProperty
result.