UNPKG

es-iterator-helpers

Version:

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

9 lines (6 loc) 243 B
'use strict'; var globalThis = require('globalthis')(); var implementation = require('./implementation'); module.exports = function getPolyfill() { return typeof globalThis.Iterator === 'function' ? globalThis.Iterator : implementation; };