group-by.js 361 B

1234567891011
  1. 'use strict';
  2. require('../../modules/es.map');
  3. require('../../modules/esnext.map.group-by');
  4. var path = require('../../internals/path');
  5. var Map = path.Map;
  6. var mapGroupBy = Map.groupBy;
  7. module.exports = function groupBy(source, iterable, keyDerivative) {
  8. return mapGroupBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDerivative);
  9. };