//#region src/Array/minOr.d.ts /** * # minOr * * ```ts * function Array.minOr( * target: readonly number[], * or: T, * ): number | T * ``` * * Returns the minimum value in the number `array`, or `fallback` if the array is empty. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.minOr([5, 1, 3, 2], 0); // 1 * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([5, 1, 3, 2], Array.minOr(0)); // 1 * ``` * */ declare const minOr: { (or: T): (target: readonly number[]) => number | T; (target: readonly number[], or: T): number | T; }; //#endregion export { minOr };