shim.js 305 B

1234567891011121314151617
  1. 'use strict';
  2. var define = require('define-properties');
  3. var getPolyfill = require('./polyfill');
  4. module.exports = function shim() {
  5. var polyfill = getPolyfill();
  6. define(
  7. Object,
  8. { groupBy: polyfill },
  9. { groupBy: function () { return Object.groupBy !== polyfill; } }
  10. );
  11. return polyfill;
  12. };