UNPKG

981 BMarkdownView Raw
1# Installation
2> `npm install --save @types/has`
3
4# Summary
5This package contains type definitions for has (https://github.com/tarruda/has).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has/index.d.ts)
10````ts
11/**
12 * Determines whether an object has an own property with the specified name.
13 *
14 * @param target The object that contains the property.
15 * @param property A property name.
16 *
17 * @throws {TypeError} If `target` is nullish.
18 */
19declare function hasOwnProperty<P extends PropertyKey>(target: {}, property: P): target is { [K in P]: unknown };
20export = hasOwnProperty;
21
22````
23
24### Additional Details
25 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
26 * Dependencies: none
27
28# Credits
29These definitions were written by [Jordan Harband](https://github.com/ljharb), and [ExE Boss](https://github.com/ExE-Boss).
30
\No newline at end of file