• Computes the maximum value of array. If array is empty or falsey undefined is returned.

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>

    Returns undefined | T

    Returns the maximum value.