Open this example in the interactive library
Source code
import * as util from "node:util";
console.log(util.inspect({ a: { b: { c: 1 } } }, { depth: 1 }));
Sample output
{ a: { b: [Object] } }
Open this example in the interactive library
import * as util from "node:util";
console.log(util.inspect({ a: { b: { c: 1 } } }, { depth: 1 }));
{ a: { b: [Object] } }