core-js
Version:
Standard library
14 lines (11 loc) • 497 B
JavaScript
;
var internalMap = require('../internals/array-methods')(1);
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('map');
// `Array.prototype.map` method
// https://tc39.github.io/ecma262/#sec-array.prototype.map
// with adding support of @@species
require('../internals/export')({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT }, {
map: function map(callbackfn /* , thisArg */) {
return internalMap(this, callbackfn, arguments[1]);
}
});