1 | ;
|
2 | var $ = require('../internals/export');
|
3 | var $map = require('../internals/array-iteration').map;
|
4 | var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
5 |
|
6 | // `Array.prototype.map` method
|
7 | // https://tc39.github.io/ecma262/#sec-array.prototype.map
|
8 | // with adding support of @@species
|
9 | $({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('map') }, {
|
10 | map: function map(callbackfn /* , thisArg */) {
|
11 | return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
12 | }
|
13 | });
|