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
14 lines (13 loc) • 542 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.forEachDocs = void 0;
var forEachDocs = exports.forEachDocs = {
name: 'forEach',
category: 'Matrix',
syntax: ['forEach(x, callback)'],
description: 'Iterates over all elements of a matrix/array, and executes the given callback function.',
examples: ['numberOfPets = {}', 'addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;', 'forEach(["Dog","Cat","Cat"], addPet)', 'numberOfPets'],
seealso: ['map', 'sort', 'filter']
};
;