Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 291 Bytes

pretty-print-objects-in-the-console.md

File metadata and controls

6 lines (5 loc) · 291 Bytes

Pretty Print Objects in the Console

If you console.log() a JS object, then you get something like [Object object] in the console. However, if you wrap your object in JSON.stringify() then it will be pretty printed in the console and you'll be able to see all of the object's fields.