stringify
Produces a human-readable string from any unknown value.
Uses JSON.stringify for structured types (plain objects, arrays)
so the message contains actual content instead of [object Object].
Maps and Sets are converted to their array representation first.
Falls back to String() for primitives or when serialization fails
(e.g. circular references).
Usage
stringify(value: unknown)
Produces a human-readable string from any unknown value.
Uses JSON.stringify for structured types (plain objects, arrays)
so the message contains actual content instead of [object Object].
Maps and Sets are converted to their array representation first.
Falls back to String() for primitives or when serialization fails
(e.g. circular references).
Parameters
valueunknownrequired
the value to convert.
Returns
A meaningful string representation.