lix-website/themes/lix/assets/bootstrap/node_modules/has-own-prop/index.d.ts
2024-04-26 22:49:34 -06:00

18 lines
323 B
TypeScript

/**
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;