feige
2024-03-26 017052c6caf4c38b0a2fd25d48d299d79c82814f
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);
};