core-js
Version:
Standard library
10 lines (8 loc) • 343 B
JavaScript
;
require('../../modules/es.map');
require('../../modules/esnext.map.group-by');
var Map = require('../../internals/path').Map;
var mapGroupBy = Map.groupBy;
module.exports = function groupBy(source, iterable, keyDerivative) {
return mapGroupBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDerivative);
};