Created
October 12, 2011 16:20
-
-
Save llkats/1281708 to your computer and use it in GitHub Desktop.
console debugging idiom
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
debug = if console?.log? then true else false | |
# ... # | |
console.log "error" if debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment