Skip to content

Instantly share code, notes, and snippets.

View ubermajestix's full-sized avatar

Tyler Montgomery ubermajestix

View GitHub Profile
// 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"