Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
239 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.