Skip to main content

mean

_.mean(array) # Ⓢ [Ⓣ][1] Ⓝ

Computes the mean of the values in array.

Since​

4.0.0

Arguments​

  1. array (Array): The array to iterate over.

Returns​

(number): Returns the mean.

Example​

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