UNPKG

data-forge

Version:

JavaScript data transformation and analysis toolkit inspired by Pandas and LINQ.

11 lines (10 loc) 382 B
/** * A predicate function, returns true or false based on input. */ export declare type PredicateFn<InputT> = (value: InputT) => boolean; export declare class WhereIterator<T> implements Iterator<T> { childIterator: Iterator<T>; predicate: PredicateFn<T>; constructor(childIterator: Iterator<T>, predicate: PredicateFn<T>); next(): IteratorResult<T>; }