core.number.iterator.js 243 B

123456789
  1. 'use strict';
  2. require('./_iter-define')(Number, 'Number', function (iterated) {
  3. this._l = +iterated;
  4. this._i = 0;
  5. }, function () {
  6. var i = this._i++;
  7. var done = !(i < this._l);
  8. return { done: done, value: done ? undefined : i };
  9. });