1 | /**
|
2 | * Returns a new Array containing all the element of the source array except
|
3 | * `null` and `undefined` ones. This brings the benefit of strong typing over
|
4 | * `Array.prototype.filter`.
|
5 | */
|
6 | declare function compactArray<T>(array: Array<T | null | undefined>): T[];
|
7 |
|
8 | declare namespace compactArray {}
|
9 |
|
10 | export = compactArray;
|