PageRenderTime 24ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/core.number.iterator.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | 2bd6b32e1baaa56f352883b6e9bfe58b MD5 | raw file
1'use strict';
2require('./_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});