Skip to content

Instantly share code, notes, and snippets.

@eeropic
Last active January 8, 2018 19:28
Show Gist options
  • Select an option

  • Save eeropic/c6a2d8e577a5d3f189ece62edafb1eb9 to your computer and use it in GitHub Desktop.

Select an option

Save eeropic/c6a2d8e577a5d3f189ece62edafb1eb9 to your computer and use it in GitHub Desktop.
Debug logging
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