Stone.js API
    Preparing search index...
    • Read a value at a key path, returning a fallback when absent.

      Type Parameters

      • T = unknown

      Parameters

      • obj: unknown

        The source object.

      • key: PropertyKey | PropertyKey[]

        The key path.

      • Optionalfallback: T

        The value returned when the path is absent.

      Returns T

      The value or the fallback.