Last active
August 29, 2015 14:01
-
-
Save theosp/f05f013130b9bd23ab46 to your computer and use it in GitHub Desktop.
coffee modified console.log
This file contains 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
log = -> | |
console.log.apply @, ["Message"].concat Array.prototype.slice.apply(arguments) | |
# with date | |
log = -> | |
console.log.apply @, | |
[ | |
"Message", new Date().toISOString().replace(/.*T/, "").replace(/\..*/, "") + ":" | |
].concat Array.prototype.slice.apply(arguments) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment