import type { Compact } from '../../Array/compact.js'; declare global { interface Array { /** * Returns a new array without any falsy values. (i.e. `null`, `undefined`, `false`, `''`, `0`, `0n` or `NaN`) * * @example * ```typescript * const arr = [1, 2, undefined, 3, null, '', 0, false]; * arr.compact(); // => [1, 2, 3] * ``` */ compact(): Compact; } interface ReadonlyArray { /** * Returns a new array without any falsy values. (i.e. `null`, `undefined`, `false`, `''`, `0`, `0n` or `NaN`) * * @example * ```typescript * const arr = [1, 2, undefined, 3, null]; * arr.compact(); // => [1, 2, 3] * ``` */ compact(): Compact; } } //# sourceMappingURL=compact.d.ts.map