setup-php/node_modules/has
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30
..
src init 2019-09-06 05:17:43 +05:30
test init 2019-09-06 05:17:43 +05:30
LICENSE-MIT init 2019-09-06 05:17:43 +05:30
package.json init 2019-09-06 05:17:43 +05:30
README.md init 2019-09-06 05:17:43 +05:30

has

Object.prototype.hasOwnProperty.call shortcut

Installation

npm install --save has

Usage

var has = require('has');

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