@extra-array/count
Version:
Counts values which satisfy a test.
11 lines (10 loc) • 302 B
TypeScript
declare module "@extra-array/count" {
import type { testFn } from "./_types";
/**
* Counts values which satisfy a test.
* @param x an array
* @param ft test function (v, i, x)
*/
declare function count<T>(x: Iterable<T>, ft: testFn<T>): number;
export = count;
//# sourceMappingURL=count.d.ts.map}