• Converts any value to a string representation.

    Parameters

    • value: unknown

      The value to convert to a string

    Returns string

    A string representation of the input value

    • If undefined, returns an empty string
    • If already a string, returns it unchanged
    • If a BigInt, converts to decimal string
    • If a Date, converts to ISO string
    • If an object, converts to JSON string
    • For all other types, uses String() conversion