7 lines
287 B
TypeScript
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;
|