Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 808 Bytes

types.printvalue.md

File metadata and controls

29 lines (18 loc) · 808 Bytes

Home > @skunkteam/types > printValue

printValue() function

Print an unknown value with a given character budget (default: 50).

Signature:

declare function printValue(input: unknown, budget?: number, visited?: Set<unknown>): string;

Parameters

Parameter Type Description
input unknown
budget number (Optional)
visited Set<unknown> (Optional)

Returns:

string

Remarks

Note that the budget is a hint and is not guaranteed to be met. It protects against circular references.