You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
323 B
18 lines
323 B
/**
|
|
Shortcut for `Object.prototype.hasOwnProperty.call(object, property)`.
|
|
|
|
@example
|
|
```
|
|
import hasOwnProp = require('has-own-prop');
|
|
|
|
hasOwnProp({}, 'hello');
|
|
//=> false
|
|
|
|
hasOwnProp([1, 2, 3], 0);
|
|
//=> true
|
|
```
|
|
*/
|
|
declare function hasOwnProp(object: unknown, key: string | number | symbol): boolean;
|
|
|
|
export = hasOwnProp;
|