/** * @file Array.ts * @author Gage Sorrell * @copyright (c) 2026 Gage Sorrell * @license MIT */ import type { FilteredArray, Options, TArrayType } from "./Array.Types.ts"; import type { NoOptions } from "../Generic/Option/Option.Types.ts"; /** * Filter out all instances of `undefined` from a given {@link Array:param}. * @param Array - The array to filter. * * @template ElementType - The type of the elements in the array. * * @returns {TArrayType, Exclude>} * A new `Array` of type `Exclude` and `OptionsType` that is the given * {@link OptionsType}, with the {@link Options.MaybeDefined} option removed. * * @example With the given {@link ElementType} including `undefined`. * ```typescript * const MaybeOddNumbers: TArray = [ 1, 3, undefined, 5 ]; * const OddNumbers: TArray = FilterDefined(MaybeOddNumbers); * ``` * @example With the given {@link OptionsType} including `Options.MaybeDefined`. * ```typescript * const MaybeOddNumbers: TArray = [ 1, 3, undefined, 5 ]; * const OddNumbers: TArray = FilterDefined(MaybeOddNumbers); * ``` */ export declare function FilterDefined(Array: TArrayType): FilteredArray; export declare function FilterDefined(Array: TArrayType): FilteredArray; export declare function FilterDefined(Array: TArrayType): FilteredArray; //# sourceMappingURL=Array.d.ts.map