//#region src/Array/compact.d.ts /** * # compact * * ```ts * function Array.compact( * target: readonly T[], * ): readonly Exclude[] * ``` * * Removes all nullable values from `array`. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.compact([1, null, undefined]); // [1] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, null, undefined], Array.compact()); // [1] * ``` * */ declare const compact: { (): (target: T[]) => Exclude[]; (): (target: readonly T[]) => readonly Exclude[]; (target: T[]): Exclude[]; (target: readonly T[]): readonly Exclude[]; }; //#endregion export { compact };