nx.js
Functions

createInspect

createInspect(opts?): (v, opts) => string

Parameters

ParameterType
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

ParameterTypeDescription
vunknownThe value to inspect.
optsInspectOptionsOptions which may modify the generated string representation of the value.

Returns

string

A string representation of v with ANSI color codes.

NameType
customsymbol
entriessymbol
keyssymbol
valuessymbol

On this page