forked from M3-Academy/challenge-algorithms-v2.0
19 lines
239 B
Markdown
19 lines
239 B
Markdown
|
# has
|
||
|
|
||
|
> Object.prototype.hasOwnProperty.call shortcut
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```sh
|
||
|
npm install --save has
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var has = require('has');
|
||
|
|
||
|
has({}, 'hasOwnProperty'); // false
|
||
|
has(Object.prototype, 'hasOwnProperty'); // true
|
||
|
```
|