Repl.inspect() method
Home > streplts > Repl > inspect
Repl.inspect() method
Section titled “Repl.inspect() method”Eliminates [Object object] by properly inspecting deeply nested objects and arrays.
Signature:
inspect(obj: any, depth?: number): string;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
obj |
any | |
|
depth |
number |
(Optional) |
Returns:
string