Library API
    Preparing search index...

    Function unwrap

    • Traverse a Proxy chain and return the underlying raw target object. Hardened against prototype-climbing bugs and cyclic $Target chains.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The object to unwrap

      Returns T

      The underlying raw target object

      const raw = unwrap(proxyObj);