Sha256: eb91abd34db77940a11ab2fd45d9acb4d5694455b8fbed3e754ec429aa5c7988
Contents?: true
Size: 528 Bytes
Versions: 320
Compression:
Stored size: 528 Bytes
Contents
'use strict'; var create = require('./_object-create') , descriptor = require('./_property-desc') , setToStringTag = require('./_set-to-string-tag') , 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'); };
Version data entries
320 entries across 8 versions & 3 rubygems