Open ExE-Boss opened 4 years ago
The tiny npm package has exports a Function.prototype.call.bind(Object.prototype.hasOwnProperty) helper, which has the advantage of working when p.root === null or p.hasOwnProperty is not the Object.prototype.hasOwnProperty function.
has
Function.prototype.call.bind(Object.prototype.hasOwnProperty)
p.root === null
p.hasOwnProperty
Object.prototype.hasOwnProperty
The tiny npm package
has
exports aFunction.prototype.call.bind(Object.prototype.hasOwnProperty)
helper, which has the advantage of working whenp.root === null
orp.hasOwnProperty
is not theObject.prototype.hasOwnProperty
function.