_.mean(array)
Computes the mean of the values in array
.
Since
4.0.0
Arguments
-
array
(Array): The array to iterate over.
Returns
(number): Returns the mean.
Example
1 2 | _.mean([4, 2, 8, 6]); // => 5 |
_.mean(array)
Computes the mean of the values in array
.
4.0.0
array
(Array): The array to iterate over.(number): Returns the mean.
1 2 | _.mean([4, 2, 8, 6]); // => 5 |
Designed by : w10schools
service@w10schools.com
Please login to continue.