esnext.array.group-to-map.js 425 B

123456789101112
  1. var $ = require('../internals/export');
  2. var addToUnscopables = require('../internals/add-to-unscopables');
  3. var $groupToMap = require('../internals/array-group-to-map');
  4. var IS_PURE = require('../internals/is-pure');
  5. // `Array.prototype.groupToMap` method
  6. // https://github.com/tc39/proposal-array-grouping
  7. $({ target: 'Array', proto: true, forced: IS_PURE }, {
  8. groupToMap: $groupToMap
  9. });
  10. addToUnscopables('groupToMap');