UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

12 lines (11 loc) 539 B
/** * Finds the minimum value in an array of numbers that may include null or undefined values. * Iterates through the array from right to left. * @param data - An array of numbers that may include null or undefined values * @returns The minimum number found in the array. Returns 0 for empty arrays or if no valid numbers are found. * @example * min([1, null, 3, undefined, 2]) // Returns 1 * min([]) // Returns 0 * min([null, undefined]) // Returns 0 */ export declare function min(data: (number | null | undefined)[]): number;