map.js 300 B

12345678
  1. export var mapDocs = {
  2. name: 'map',
  3. category: 'Matrix',
  4. syntax: ['map(x, callback)'],
  5. description: 'Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.',
  6. examples: ['map([1, 2, 3], square)'],
  7. seealso: ['filter', 'forEach']
  8. };