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