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 (10 loc) 282 B
/** * Get a unique name for an argument name to store in defs * @param {Object} defs * @return {string} A string like 'arg1', 'arg2', ... * @private */ function getUniqueArgumentName (defs) { return 'arg' + Object.keys(defs).length } module.exports = getUniqueArgumentName;