3 ms·
if(!window.console){window.console = {};} if(!(toString(window.console.log) === '[object Function]')) {window.console.log = function(){};} there, fixed..
by devpopol 16y ago
if(!window.console){window.console = {};}
if(!(toString(window.console.log) === '[object Function]')) {window.console.log = function(){};}
there, fixed..
- jmtulloss 16y agoThis won't work in node. That's not a huge deal, but it's pretty simple to come up with a cleaner solution that works in all environments.