Created
September 12, 2014 17:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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