source: trip-planner-front/node_modules/core-js/modules/esnext.array.group-by.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 619 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var $groupBy = require('../internals/array-group-by');
4var arraySpeciesConstructor = require('../internals/array-species-constructor');
5var addToUnscopables = require('../internals/add-to-unscopables');
6
7// `Array.prototype.groupBy` method
8// https://github.com/tc39/proposal-array-grouping
9$({ target: 'Array', proto: true }, {
10 groupBy: function groupBy(callbackfn /* , thisArg */) {
11 var thisArg = arguments.length > 1 ? arguments[1] : undefined;
12 return $groupBy(this, callbackfn, thisArg, arraySpeciesConstructor);
13 }
14});
15
16addToUnscopables('groupBy');
Note: See TracBrowser for help on using the repository browser.