Files
yuezi-saas/client/node_modules/console/lib/index.js
T

20 lines
638 B
JavaScript

"use strict";
exports.__esModule = true;
// Avoid `console` errors in environments that lack a console.
var method = void 0;
var noop = function noop() {};
var methods = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeStamp", "trace", "warn"];
var length = methods.length;
while (length--) {
method = methods[length];
// Only stub undefined methods.
if (!console[method]) {
console[method] = noop;
}
}
exports.default = console;
module.exports = exports["default"];