UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

17 lines (14 loc) 296 B
// sigh... life is hard if (!global.console) { console = {} } var fns = ['log', 'error', 'trace']; for (var i=0 ; i<fns.length ; ++i) { var fn = fns[i]; if (!console[fn]) { console[fn] = function() {}; } } if (!Array.isArray) { Array.isArray = require('isarray'); }