Sha256: be246ef3978bcc9ebc5426f0b876e5a20d2e33bad0ce3c44990a9d9a62579b82

Contents?: true

Size: 525 Bytes

Versions: 40

Compression:

Stored size: 525 Bytes

Contents

'use strict';
var $at  = require('./$.string-at')(true);

// 21.1.3.27 String.prototype[@@iterator]()
require('./$.iter-define')(String, 'String', function(iterated){
  this._t = String(iterated); // target
  this._i = 0;                // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function(){
  var O     = this._t
    , index = this._i
    , point;
  if(index >= O.length)return {value: undefined, done: true};
  point = $at(O, index);
  this._i += point.length;
  return {value: point, done: false};
});

Version data entries

40 entries across 18 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/core-js/modules/es6.string.iterator.js
ilog-0.4.1 node_modules/core-js/library/modules/es6.string.iterator.js
ilog-0.4.0 node_modules/core-js/modules/es6.string.iterator.js
ilog-0.4.0 node_modules/core-js/library/modules/es6.string.iterator.js
ilog-0.3.3 node_modules/core-js/modules/es6.string.iterator.js
ilog-0.3.3 node_modules/core-js/library/modules/es6.string.iterator.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.iterator.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es6.string.iterator.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es6.string.iterator.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.iterator.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.iterator.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/modules/es6.string.iterator.js
lanes-0.8.0 node_modules/core-js/library/modules/es6.string.iterator.js
lanes-0.8.0 node_modules/core-js/modules/es6.string.iterator.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/modules/es6.string.iterator.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/library/modules/es6.string.iterator.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/modules/es6.string.iterator.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/library/modules/es6.string.iterator.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/modules/es6.string.iterator.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/library/modules/es6.string.iterator.js