source: imaps-frontend/node_modules/core-js/modules/es.array.map.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 598 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var $map = require('../internals/array-iteration').map;
4var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
5
6var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
7
8// `Array.prototype.map` method
9// https://tc39.es/ecma262/#sec-array.prototype.map
10// with adding support of @@species
11$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
12 map: function map(callbackfn /* , thisArg */) {
13 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
14 }
15});
Note: See TracBrowser for help on using the repository browser.