isPlainObject
isPlainObject(
value):value is Record<string, unknown>
Defined in: merge.ts:55
true for a plain {} object — not null, not an array, not a class
instance (Object.getPrototypeOf is Object.prototype or null, so
Object.create(null) counts too).
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is Record<string, unknown>
Example
Section titled “Example”import { isPlainObject } from "@theholocron/object-utils";
isPlainObject({}); // trueisPlainObject([]); // falseisPlainObject(new Date()); // false