Tcsm
2023-04-05 dc50f2d69da187bdbe38ad44516d131105f720fd
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../../modules/es.map');
require('../../modules/esnext.map.group-by');
var call = require('../../internals/function-call');
var isCallable = require('../../internals/is-callable');
var path = require('../../internals/path');
 
var Map = path.Map;
var mapGroupBy = Map.groupBy;
 
module.exports = function groupBy(source, iterable, keyDerivative) {
  return call(mapGroupBy, isCallable(this) ? this : Map, source, iterable, keyDerivative);
};