• Computes the mean of the values in array.

    Parameters

    • collection: undefined | null | List<any>

    Returns number

    Returns the mean.

    _.mean([4, 2, 8, 6]);
    // => 5