mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
13 lines (12 loc) • 341 B
JavaScript
module.exports = {
'name': 'forEach',
'category': 'Utils',
'syntax': [
'forEach(x, callback)'
],
'description': 'Iterates over all elements of a matrix/array, and executes the given callback function.',
'examples': [
'forEach([1, 2, 3], function(val) { console.log(val) })'
],
'seealso': ['map', 'sort', 'filter']
};