Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (! DEBUG) {
if (! window.console) {
window.console = {};
}
methods = ["log", "debug", "warn", "info"];
for (i = 0; i < methods.length; i++) {
console[methods[i]] = function () {};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment