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

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>
    • Optional iteratee: ValueIteratee<T>

      The iteratee invoked per element.

    Returns number

    Returns the mean.

    Example

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

Generated using TypeDoc