Skip to content

Object Utils

Terminal window
pnpm add @theholocron/object-utils
import { deepMerge, isPlainObject } from "@theholocron/object-utils";
isPlainObject({}); // true
isPlainObject(new Date()); // false
deepMerge({ a: 1, nested: { x: 1 } }, { nested: { y: 2 } });
// { a: 1, nested: { x: 1, y: 2 } }
deepMerge({ tasks: ["a"] }, { tasks: ["b"] });
// { tasks: ["a", "b"] }

The full API reference is generated from the package’s TSDoc comments.