linwenling
2023-05-25 f6316c7663903ef495bb1dfa8f8395f75fcf7f04
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);
};