10 lines
251 B
Plaintext
10 lines
251 B
Plaintext
'use strict';
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
module.exports = function getPolyfill() {
|
|
return typeof Iterator === 'function' && typeof Iterator.prototype.reduce === 'function'
|
|
? Iterator.prototype.reduce
|
|
: implementation;
|
|
};
|