_.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