gradum-kit - v0.1.0
    Preparing search index...

    Function parse

    • Function

      parse

      Parameters

      • str: string

        The string to convert back.

      Returns any

      The recovered value, or the original string if it matched no known form.

      Turn a string produced by stringify back into a value, recovering booleans, null, numbers, bigints, objects, and arrays. Anything it cannot place comes back unchanged as the original string. Note: strings that look like function source are evaluated, so only parse input you trust.