UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

18 lines • 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class FilterIterator { constructor(source, predicate) { this.source = source; this.predicate = predicate; } next() { let result; // Skip elements until predicate returns true do { result = this.source.next(); } while (!result.done && !this.predicate(result.value)); return result; } } exports.FilterIterator = FilterIterator; //# sourceMappingURL=filter.js.map