UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

13 lines 532 B
/** * An iterator that filters the values from the input Iterator<T>, to only those that return a truthy value in the * `predicate`. */ export declare class FilterIterator<T> implements IterableIterator<T> { protected iterator: Iterator<T>; protected predicate: (value: T) => any; constructor(iterator: Iterator<T>, predicate: (value: T) => any); [Symbol.iterator](): IterableIterator<T>; next(...args: any[]): IteratorResult<any>; } export default FilterIterator; //# sourceMappingURL=FilterIterator.d.ts.map