DEV Community

Discussion on: Debugging nested objects

Collapse
 
tuliocalil profile image
Tulio Calil

Nice!
Another way (that I use a lot) is with JSON.stringify().

const nested = {a: {b: {c: {d: 'd'}}}};

console.table(JSON.stringify(nested, null, 2));
Enter fullscreen mode Exit fullscreen mode

Output

Works very well too.