Package @typhonjs-utils/object

    Provides JavaScript and TypeScript utilities for validating, inspecting, traversing, comparing, and modifying objects.

    The package includes runtime assertions and type guards, strongly typed property-path access using dotted strings or exact PropertyKey arrays, hardened mutation and deep-merge operations, symbol-aware traversal, iterative freeze / seal helpers, prototype and descriptor inspection, and iterable utilities.

    The cloning API from klona/full is re-exported.

    Functions

    assertObject
    assertPlainObject
    assertRecord
    deepFreeze
    deepMerge
    deepSeal
    ensureNonEmptyAsyncIterable
    ensureNonEmptyIterable
    hasAccessor
    hasGetter
    hasProperty
    hasPrototype
    hasSetter
    isAsyncIterable
    isIterable
    isObject
    isPlainObject
    isRecord
    klona
    objectKeys
    objectSize
    safeAccess
    safeEqual
    safeKeyIterator
    safeSet

    Type Aliases

    SafeAccessor