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

Version Path
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-parameters/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-parameters/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-object-super/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-object-super/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-literals/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-literals/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-function-name/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-function-name/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-for-of/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-for-of/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-destructuring/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-destructuring/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/core-js/library/modules/_iter-create.js