TIL of a console.log way to avoid [object object]
POSTED ON:
TAGS: javascript object node
how to avoid [object object]
const o = {
u: {
l: { course: 'node.js', a: { b: {}}}
}
}
console.log(JSON.stringify(o, null, 2))
From Scott Moss' Introduction to Node.js on Frontend Masters.
https://frontendmasters.com/courses/node-js-v2/
Related TILs
Tagged: javascript