wishthis/node_modules/has
2022-04-08 12:55:35 +02:00
..
src Add production dependencies 2022-01-21 09:28:41 +01:00
test Add production dependencies 2022-01-21 09:28:41 +01:00
LICENSE-MIT Add production dependencies 2022-01-21 09:28:41 +01:00
package.json Install yarn 2022-04-08 12:55:35 +02:00
README.md Add production dependencies 2022-01-21 09:28:41 +01:00

has

Object.prototype.hasOwnProperty.call shortcut

Installation

npm install --save has

Usage

var has = require('has');

has({}, 'hasOwnProperty'); // false
has(Object.prototype, 'hasOwnProperty'); // true