lix-website/themes/lix/assets/bootstrap/node_modules/has-own-prop/index.d.ts

18 lines
323 B
TypeScript
Raw Permalink Normal View History

2024-04-27 03:39:10 +00:00
/**
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;