iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
10 lines • 539 B
TypeScript
/** Maps the input iterator to a new value of type `R` and filters out any values that are nullish. */
export declare class FilterMapIterator<T, R> implements IterableIterator<NonNullable<R>> {
protected iterator: Iterator<T>;
protected iteratee: (value: T) => R;
constructor(iterator: Iterator<T>, iteratee: (value: T) => R);
[Symbol.iterator](): IterableIterator<NonNullable<R>>;
next(...args: any[]): IteratorResult<NonNullable<R>>;
}
export default FilterMapIterator;
//# sourceMappingURL=FilterMapIterator.d.ts.map