@lou.codes/predicates
Version:
🧐 Predicate util functions
15 lines (14 loc) • 403 B
TypeScript
/**
* Given `input`'s prototype comes directly from Object.
*
* @category Predicates
* @example
* ```typescript
* isPrototypeOfObject({}); // true
* isPrototypeOfObject(/./); // false
* ```
* @returns `true` if the given value is an object inheriting directly from `Object`, `false` otherwise.
*/
export declare const isPrototypeOfObject: <Input extends object>(
object: Input,
) => boolean;