@lou.codes/predicates
Version:
🧐 Predicate util functions
14 lines (13 loc) • 417 B
JavaScript
import { isPrototypeOf } from "./isPrototypeOf.js";
/**
* 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 const isPrototypeOfObject = isPrototypeOf(Object);