-
-
Save tallykatt/701576eae7018728abbc944f0a7f26d8 to your computer and use it in GitHub Desktop.
JS Console Logging For Production & Debug Builds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debugMode=false; | |
//..... | |
function logMessage() { | |
if(!debugMode) return; | |
console.log(Array.prototype.slice.call(arguments) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment