UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

6 lines 400 B
import type { IteratorOrIterable, Predicate } from './types'; /** Returns the number of times the `predicate` returns a truthy value. */ export declare function quantify<T>(arg: IteratorOrIterable<T>, predicate: Predicate<T>): number; export declare function quantify<T>(predicate: Predicate<T>): (arg: IteratorOrIterable<T>) => number; export default quantify; //# sourceMappingURL=quantify.d.ts.map