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

12 lines (9 loc) 463 B
// For backward compatibility, deprecated since version 6.0.0. Date: 2018-12-05 import { factory } from '../../utils/factory' import { warnOnce } from '../../utils/log' export const createDeprecatedEval = /* #__PURE__ */ factory('eval', ['evaluate'], ({ evaluate }) => { return function (...args) { warnOnce('Function "eval" has been renamed to "evaluate" in v6.0.0, please use the new function instead.') return evaluate.apply(evaluate, args) } })