Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created September 12, 2014 17:09
Show Gist options
  • Save lcaballero/6ecddb2ce5601986ee76 to your computer and use it in GitHub Desktop.
Save lcaballero/6ecddb2ce5601986ee76 to your computer and use it in GitHub Desktop.
Coffee script to add json serialization to a var args call on console.
console.json = (args...) ->
console.log.apply(console, _.map(args, (a) -> JSON.stringify(a, null, ' ')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment