Skip to content

Instantly share code, notes, and snippets.

@tracend
Last active October 4, 2015 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/2714804 to your computer and use it in GitHub Desktop.
Save tracend/2714804 to your computer and use it in GitHub Desktop.
_.inDebug() #underscore #mixin #cc
_.mixin({
// - Check if in debug mode (requires the existence of a global DEBUG var)
// Usage: _.inDebug()
inDebug : function() {
return ( typeof DEBUG != "undefined" && DEBUG );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment