-
-
Save ubermajestix/768317 to your computer and use it in GitHub Desktop.
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
// wrapper to prevent ie erroring out on leftover console.logs | |
function log(log) | |
{ | |
if( typeof console !== "undefined" ) | |
console.log( log ); | |
} // log | |
// this version is nice because you can do this: | |
// var boom = 'booooom!'; | |
// log('some value:', boom, 2);// => "some value booooom! 2" | |
// which saves you frome playing the 'quote plus plus quote' game | |
function log(){ | |
if(window.console) { | |
console.log.apply(console, arguments); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment