• Computes the maximum of the numbers.

    Parameters

    • numbers: number[]

      The array to iterate over.

    Returns number

    The maximum value.

    Since

    1.0.0

    Example

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