source:
trip-planner-front/node_modules/has/README.md
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 239 bytes |
Line | |
---|---|
1 | # has |
2 | |
3 | > Object.prototype.hasOwnProperty.call shortcut |
4 | |
5 | ## Installation |
6 | |
7 | ```sh |
8 | npm install --save has |
9 | ``` |
10 | |
11 | ## Usage |
12 | |
13 | ```js |
14 | var has = require('has'); |
15 | |
16 | has({}, 'hasOwnProperty'); // false |
17 | has(Object.prototype, 'hasOwnProperty'); // true |
18 | ``` |
Note:
See TracBrowser
for help on using the repository browser.