Created
July 24, 2016 20:51
-
-
Save dftaiwo/243126bdcc5a078135d05457a654bfa2 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