1234567891011121314151617181920212223242526272829303132333435 |
- var toArray = require('./toArray');
- function wrapperNext() {
- if (this.__values__ === undefined) {
- this.__values__ = toArray(this.value());
- }
- var done = this.__index__ >= this.__values__.length,
- value = done ? undefined : this.__values__[this.__index__++];
- return { 'done': done, 'value': value };
- }
- module.exports = wrapperNext;
|