Inspects a given value and returns a string representation of it.
The function uses ANSI color codes to highlight different parts of the output.
It can handle and correctly output different types of values including primitives, functions, arrays, and objects.
Param
The value to inspect.
Param
Options which may modify the generated string representation of the value.
Returns
A string representation of v with ANSI color codes.
Inspects a given value and returns a string representation of it. The function uses ANSI color codes to highlight different parts of the output. It can handle and correctly output different types of values including primitives, functions, arrays, and objects.
Param
The value to inspect.
Param
Options which may modify the generated string representation of the value.
Returns
A string representation of
v
with ANSI color codes.