/** * #### Filters falsy values of the given array * * does not modify the original array * * Values to be filtered: `[undefined, null, "", 0, false, NaN]` * * * * * * Example usage: * ```typescript * import { compact } from "@thalesrc/js-utils/array"; * * const arr = [undefined, "", false, 0, 1, "1"]; * const compacted = compact(arr); // [1, "1"]; * * ``` * * Example as Array Prototype: * ```typescript * import "@thalesrc/js-utils/array/proto/compact"; * * const arr = [undefined, "", false, 0, 1, "1"]; * const compacted = arr.compact(); // [1, "1"]; * ``` * * * * * @param arrayToCompact array to compact * @typeparam T type of array * @returns __a new__ compacted array */ export declare function compact(arrayToCompact: T[]): T[];