4 ms·
Stripping out console.log as part of a build process tends to be the ideal solution, but on smaller projects it's nice to leave them intact so the below is my p
by 4lun 14y ago
Stripping out console.log as part of a build process tends to be the ideal solution, but on smaller projects it's nice to leave them intact so the below is my preferred method:
if (typeof console == "undefined") {
console = { log: function() {} };
};