template-project/node_modules/batch-cluster/dist/Array.d.ts
2025-05-30 18:13:30 +08:00

7 lines
287 B
TypeScript

/**
* 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;