When debugging using console.log(), how can I get the full object?
console.log()
const myObject = { \"a\":\"a\", \"b\":{ \"c\":\"c\", \"d\":
let myVar = {a: {b: {c: 1}}}; console.log(JSON.stringify( myVar, null, 4 ))
Great for deep inspection of data objects. This approach works on nested arrays and nested objects with arrays.