Assignment5_new/node_modules/es-iterator-helpers/Iterator.concat/shim.js

19 lines
420 B
JavaScript
Raw Normal View History

2025-01-07 05:14:59 +00:00
'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;
};