travel/admin/node_modules/has
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
src init... 2024-06-24 11:28:18 +08:00
test init... 2024-06-24 11:28:18 +08:00
LICENSE-MIT init... 2024-06-24 11:28:18 +08:00
README.md init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08: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