the-forest/client/node_modules/es-iterator-helpers/Iterator.from/shim.js

19 lines
412 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
'use strict';
var getPolyfill = require('./polyfill');
var define = require('define-properties');
var getIteratorPolyfill = require('../Iterator/polyfill');
module.exports = function shimIteratorFrom() {
var $Iterator = getIteratorPolyfill();
var polyfill = getPolyfill();
define(
$Iterator,
{ from: polyfill },
{ from: function () { return $Iterator.from !== polyfill; } }
);
return polyfill;
};