Functions
createInspect
createInspect(opts
?): (v
, opts
) => string
Parameters
Parameter | Type |
---|---|
opts ? | CreateInspectOptions |
Returns
Function
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.
Parameters
Parameter | Type | Description |
---|---|---|
v | unknown | The value to inspect. |
opts | InspectOptions | Options which may modify the generated string representation of the value. |
Returns
string
A string representation of v
with ANSI color codes.
Name | Type |
---|---|
custom | symbol |
entries | symbol |
keys | symbol |
values | symbol |