es6.array.map.js 359 B

12345678910
  1. 'use strict';
  2. var $export = require('./_export');
  3. var $map = require('./_array-methods')(1);
  4. $export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {
  5. // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
  6. map: function map(callbackfn /* , thisArg */) {
  7. return $map(this, callbackfn, arguments[1]);
  8. }
  9. });