UNPKG

@lou.codes/predicates

Version:
15 lines (14 loc) 403 B
/** * 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;