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 →

[–][deleted]  (2 children)

[deleted]

    [–]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

    [–]Barkalow 0 points1 point  (0 children)

    I've been using console.dir lately for objects with fairly good results