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.0 node_modules/babel-helpers/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-es3-property-literals/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/library/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/modules/_iter-create.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/library/modules/_iter-create.js