• Get the highest value in an array of numbers.

    Parameters

    • values: number[]

      The array of numbers.

    Returns number | undefined

    Undefined if the input array is empty, otherwise the highest value.