isaacs / proto-list

A list of objects bound by prototype chain
ISC License
20 stars 2 forks source link

set: Use bound `hasOwnProperty` #12

Open ExE-Boss opened 4 years ago

ExE-Boss commented 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.