DEV Community

Discussion on: The trick to making console.log play nice with complex objects

Collapse
 
user_97530cf790 profile image
user_97530cf790

Thank you for the info. I was using the JSON.stringify but I didn't know that it can take second and third parameter. Indentation it's really cool.

Collapse
 
ehlo_250 profile image
Paul Oms

Thanks! You can do quite a lot with the 2nd/3rd params, probably too much! developer.mozilla.org/en-US/docs/W...

Collapse
 
pierrewahlberg profile image
Pierre Vahlberg

Wow, how have I been using JS on the backend and not known about this.. thanks!