hasOwn
Failsafe function that uses Object.prototype.hasOwnProperty() and return false in case if target is not a valid object.
Note: It uses arrow functions that may not be supported by some old environments.
You better use lodash/has.
Failsafe function that uses Object.prototype.hasOwnProperty() and return false in case if target is not a valid object.
Note: It uses arrow functions that may not be supported by some old environments.
You better use lodash/has.
npm i @actualwave/has-own
407
0.0.3
MIT
1.41 kB
5