mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 08:30:51 +00:00
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
|
||
|
```
|