Aller au contenu
Français

safeStringify

Ce contenu n’est pas encore disponible dans votre langue.

safeStringify(value, maxLength?): string

Defined in: src/util/SafeStringify.ts:27

Render value as a string, never throwing.

unknown

number = DEFAULT_MAX_LENGTH

Cap on the returned string; the tail is replaced with a truncation marker. A large body is a latency problem rather than a correctness one, but an error message has no use for the rest of it.

string