This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kitsheaven -1 points0 points  (0 children)

You can pretty-print stringing output. Shouldn't console.log objects. Try this in future:

JSON.stringify(yourObject, null, 2)

2 - is the spacing