Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
_.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
You can’t perform that action at this time.