Takaro - v0.4.11
    Preparing search index...

    Function meanBy

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

      Type Parameters

      • T

      Parameters

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

        The iteratee invoked per element.

      Returns number

      Returns the mean.

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