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