zhangnaisong
2023-10-19 2c405f34c9bc32936957e45d1c38c55f5696fa46
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);
};