Skip to content

Repl.inspect() method

Home > streplts > Repl > inspect

Eliminates [Object object] by properly inspecting deeply nested objects and arrays.

Signature:

inspect(obj: any, depth?: number): string;

Parameter

Type

Description

obj

any

depth

number

(Optional)

Returns:

string