JAVASCRIPT 22
Console.js Guest on 2nd May 2021 01:43:39 PM
  1. var console;
  2. if (typeof global !== "undefined" && global.console) {
  3.     console = global.console
  4. } else if (typeof window !== "undefined" && window.console) {
  5.     console = window.console
  6. } else {
  7.     console = window.console = {}
  8. }
  9. module.exports = console;
  10. for(var name in {log:1, info:1, error:1, warn:1, dir:1, trace:1, assert:1, time:1, timeEnd: 1})
  11.       if(!console[name])
  12.             console[name] = function() {};

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.