Skip to content

Instantly share code, notes, and snippets.

@taktran
Created February 8, 2014 16:53
Show Gist options
  • Save taktran/8886603 to your computer and use it in GitHub Desktop.
Save taktran/8886603 to your computer and use it in GitHub Desktop.
Wrap log function
// Also see http://www.paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
var log = function() {
if (console) {
console.log.apply(this, arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment