UNPKG

batch-cluster

Version:
7 lines (6 loc) 287 B
/** * Remove all elements from the given array that return false from the given * predicate `filter`. */ export declare function filterInPlace<T>(arr: T[], filter: (t: T) => boolean): T[]; export declare function count<T>(arr: T[], predicate: (t: T, idx: number) => boolean): number;