mean

Math
since 4.0.0

Arguments

  • Array The array to iterate over.

Returns

number the mean.

Computes the mean of the values in array.

Example of Lodash _.mean

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