• Return min and max values of an array.

    Parameters

    • array: NumberArray

      array of number

    Returns {
        max: number;
        min: number;
    }

    • Object with 2 properties, min and max
    • max: number
    • min: number