//#region src/Array/atOr.d.ts /** * # atOr * * ```ts * function Array.atOr( * target: readonly T[], * offset: number, * or: U, * ): Exclude | U * ``` * * Returns the value at the specified `offset`. Returns `fallback` if the `offset` was out of range, or the retrieved value was nullable. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.atOr([1, null], -1, 2); // 2 * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, null], Array.atOr(-1, 2)); // 2 * ``` * */ declare const atOr: { (offset: number, or: U): (target: readonly T[]) => Exclude | U; (target: readonly T[], offset: number, or: U): Exclude | U; }; //#endregion export { atOr };