• Calculates the minimum and maximum values from an array of numbers. Filters out null and undefined values before calculation.

    Parameters

    • values: number[]

      Array of numbers, possibly including null or undefined values

    Returns {
        min: number;
        max: number;
    } | null

    Object with min and max properties, or null if there are no valid values