Logging Aliases for Javascript
02 November 2021
Updated: 03 September 2023
I often find myself writing a function to JSON.stringify
some data to log in either a pretty or flat structure
It’s just more of a convenience method, and it’s pretty much the same as doing console.log(JSON.stringify(data))
and looks like this:
And then, when I need to log something:
Or, if I want to pretty print the JSON