polyfill.js 292 B

12345678910
  1. 'use strict';
  2. var arrayMethodBoxesProperly = require('es-array-method-boxes-properly');
  3. var implementation = require('./implementation');
  4. module.exports = function getPolyfill() {
  5. var method = Array.prototype.reduce;
  6. return arrayMethodBoxesProperly(method) ? method : implementation;
  7. };