All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules._iter-create.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
'use strict';
var create = require('./_object-create');
var descriptor = require('./_property-desc');
var setToStringTag = require('./_set-to-string-tag');
var IteratorPrototype = {};

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });

module.exports = function (Constructor, NAME, next) {
  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  setToStringTag(Constructor, NAME + ' Iterator');
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy