• Returns the max value of the given array

    Parameters

    • Optionalvalues: number[]

      the array to calculate

    Returns number | undefined

    the max value of the given array

    max([1, 2, 3]);    // 3