UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

16 lines 530 B
Object.defineProperty(exports, "__esModule", { value: true }); var GeneratorIterator = /** @class */ (function () { function GeneratorIterator(nextFunction) { this.nextFunction = nextFunction; } GeneratorIterator.prototype.next = function (value) { var nextItem = this.nextFunction(); return { done: nextItem == null, value: nextItem }; }; return GeneratorIterator; }()); exports.default = GeneratorIterator; //# sourceMappingURL=GeneratorIterator.js.map