//#region src/internal/array/compact.d.ts /** * Compact an array _(removing all false-y values)_ * * @param array Array to compact * @param strict True to remove all false-y values * @returns Compacted array * * @example * ```typescript * compact([0, 1, '', 'hello', false, true, null, undefined]); // => [1, 'hello', true] * ``` */ declare function compact(array: Item[], strict: true): Exclude[]; /** * Compact an array _(removing all `null` and `undefined` values)_ * * @param array Array to compact * @returns Compacted array * * @example * ```typescript * compact([0, 1, '', 'hello', false, true, null, undefined]); // => [0, 1, '', 'hello', false, true] * ``` */ declare function compact(array: Item[]): Exclude[]; //#endregion export { compact };