npm.io
1.0.4 • Published 2 years ago

has

Licence
MIT
Version
1.0.4
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
60
Native alternativeObject.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, "Object.hasOwn(obj, prop)")Use native JavaScript (Node 0.10.0+) Documentation

has

Object.prototype.hasOwnProperty.call shortcut

Installation

npm install --save has

Usage

var has = require('has');

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