Library API
    Preparing search index...

    Function walkPrototype

    • Lazily yields each object along target's prototype chain up to (excluding) Object.prototype, guarding against cyclic prototype chains and optionally unwrapping Proxy layers.

      Parameters

      • target: unknown

        The starting value whose prototype chain to walk

      • unwrapProxies: boolean = true

        Whether to unwrap $Target Proxy layers at each step (default true)

      • maxDepth: number = 256

        Maximum prototype chain depth before throwing RangeError (default 256)

      Returns Generator<Obj>

      RangeError if the prototype chain exceeds maxDepth