• Computes the mean of the provided properties of the objects in the array

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>
    • Optionaliteratee: ValueIteratee<T>

      The iteratee invoked per element.

    Returns number

    Returns the mean.

    _.mean([{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }], 'n');
    // => 5