Skip to content

Instantly share code, notes, and snippets.

@llkats
Created October 12, 2011 16:20
Show Gist options
  • Save llkats/1281708 to your computer and use it in GitHub Desktop.
Save llkats/1281708 to your computer and use it in GitHub Desktop.
console debugging idiom
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