1 | 'use strict';
|
2 |
|
3 | var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
4 | var $group = require('../internals/array-group');
|
5 | var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');
|
6 |
|
7 | var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
8 | var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
9 |
|
10 |
|
11 |
|
12 | exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) {
|
13 | var thisArg = arguments.length > 1 ? arguments[1] : undefined;
|
14 | return $group(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor);
|
15 | }, true);
|