source: node_modules/recharts/lib/util/LogUtils.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 875 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.warn = void 0;
7/* eslint no-console: 0 */
8var isDev = true;
9var warn = exports.warn = function warn(condition, format) {
10 for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
11 args[_key - 2] = arguments[_key];
12 }
13 if (isDev && typeof console !== 'undefined' && console.warn) {
14 if (format === undefined) {
15 console.warn('LogUtils requires an error message argument');
16 }
17 if (!condition) {
18 if (format === undefined) {
19 console.warn('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
20 } else {
21 var argIndex = 0;
22 console.warn(format.replace(/%s/g, () => args[argIndex++]));
23 }
24 }
25 }
26};
Note: See TracBrowser for help on using the repository browser.