Library API
    Preparing search index...

    Function objectify

    • Rebuilds an Object from its stringify'd string representation. Handles custom single key:value type definitions automatically.

      Type Parameters

      • T

      Parameters

      • str: any

        The string to parse

      • Optionalsentinel: Function

        Optional function to handle reconstructing undefined/void values

      Returns T

      The deserialized object or original string if parsing fails

      const obj = objectify('{"$BigInt":"123"}'); // 123n