mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
12 lines
282 B
JavaScript
12 lines
282 B
JavaScript
/**
|
|
* 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;
|