aoc/node_modules/has
alex ab688f8b38 solutions 2022-12-03 17:11:42 -05:00
..
src solutions 2022-12-03 17:11:42 -05:00
test solutions 2022-12-03 17:11:42 -05:00
LICENSE-MIT solutions 2022-12-03 17:11:42 -05:00
README.md solutions 2022-12-03 17:11:42 -05:00
package.json solutions 2022-12-03 17:11:42 -05:00

README.md

has

Object.prototype.hasOwnProperty.call shortcut

Installation

npm install --save has

Usage

var has = require('has');

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