mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
13 lines
324 B
JavaScript
13 lines
324 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': ['unit']
|
|
};
|