UNPKG

326 BTypeScriptView Raw
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 */
6declare function compactArray<T>(array: Array<T | null | undefined>): T[];
7
8declare namespace compactArray {}
9
10export = compactArray;