UNPKG

369 BTypeScriptView Raw
1/**
2 * Determines whether an object has an own property with the specified name.
3 *
4 * @param target The object that contains the property.
5 * @param property A property name.
6 *
7 * @throws {TypeError} If `target` is nullish.
8 */
9declare function hasOwnProperty<P extends PropertyKey>(target: {}, property: P): target is { [K in P]: unknown };
10export = hasOwnProperty;