DEV Community

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

user_97530cf790 profile image

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.

ehlo_250 profile image
Paul Oms Author

Thanks! You can do quite a lot with the 2nd/3rd params, probably too much!

pierrewahlberg profile image
Pierre Vahlberg

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