🔥 Burn Fat Fast. Discover How! 💪

Format the output of json.stringify | #tip The spacer is the | SeasonedDev

Format the output of json.stringify | #tip

The spacer is the third argument to JSON.stringify.

You can pass a String or a Number that is used to insert white space into the output.

If you pass a Number, it will indicate the number of space characters to use.

If you pass a String, it will use it as the “space” character.

#javascript

Creds to @SimonHoiberg