Function stringify

Encode value to string using a simple non-colliding stable scheme. Handles user-defined types by processing keys on first non-empty prototype. If a user-defined type provides a "toString" function, it is used.

  • Parameters

    • v: unknown
    • Optionalrefs: Set<unknown>

    Returns string