Colorizes and formats a value based on its type.
formatValue(1); // "1" (with colors)formatValue(BigInt(1)); // "1n" (with colors)formatValue([]); // "Array([])" (with colors)formatValue({}); // "Object({})" (with colors)
Colorized value as a string.
Value to colorize.
Colorizes and formats a value based on its type.
Example
Returns
Colorized value as a string.