主题
_.mean(array)
计算 array 中值的平均值。
array
¥Computes the mean of the values in array.
¥Since
4.0.0
¥Arguments
array (数组):要迭代的数组。
¥array (Array): The array to iterate over.
¥Returns
(数值):返回平均值。
¥(number): Returns the mean.
¥Example
_.mean([4, 2, 8, 6]); // => 5