UNPKG

object.groupby

Version:

An ESnext spec-compliant `Object.groupBy` shim/polyfill/replacement that works as far down as ES3.

20 lines (14 loc) 406 B
'use strict'; var define = require('define-properties'); var callBind = require('call-bind'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); var polyfill = getPolyfill(); var shim = require('./shim'); var bound = callBind(polyfill, Object); define(bound, { getPolyfill: getPolyfill, implementation: implementation, shim: shim }); module.exports = bound;