Last active
January 8, 2018 19:28
-
-
Save eeropic/c6a2d8e577a5d3f189ece62edafb1eb9 to your computer and use it in GitHub Desktop.
Debug logging
This file contains hidden or 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
| const DEBUG=true; | |
| function log(item){if(typeof console != "undefined" && console.log && DEBUG){var props=[];for(var a in arguments){props.push(arguments[a])}console.log(props.join(","));}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment