UNPKG

es-iterator-helpers

Version:

An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.

19 lines (14 loc) 420 B
'use strict'; var getPolyfill = require('./polyfill'); var define = require('define-properties'); var getIteratorPolyfill = require('../Iterator/polyfill'); module.exports = function shimIteratorConcat() { var $Iterator = getIteratorPolyfill(); var polyfill = getPolyfill(); define( $Iterator, { concat: polyfill }, { concat: function () { return $Iterator.concat !== polyfill; } } ); return polyfill; };