source: trip-planner-front/node_modules/core-js/modules/esnext.typed-array.group-by.js@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 694 bytes
Line 
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3var $groupBy = require('../internals/array-group-by');
4var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');
5
6var aTypedArray = ArrayBufferViewCore.aTypedArray;
7var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
8
9// `%TypedArray%.prototype.groupBy` method
10// https://github.com/tc39/proposal-array-grouping
11exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) {
12 var thisArg = arguments.length > 1 ? arguments[1] : undefined;
13 return $groupBy(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor);
14});
Note: See TracBrowser for help on using the repository browser.