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