mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
module.exports = {
|
|
'name': 'map',
|
|
'category': 'Utils',
|
|
'syntax': [
|
|
'map(x, callback)'
|
|
],
|
|
'description': 'Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.',
|
|
'examples': [
|
|
'map([1, 2, 3], function(val) { return value * value })'
|
|
],
|
|
'seealso': ['filter', 'forEach']
|
|
};
|