Find the mean of an array.
An array.
Optional
The iteratee invoked on each element.
Returns the mean.
0.1.0
mean([1, 2, 3])// => 2const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]mean(objects, ({ n }) => n)// => 5 Copy
mean([1, 2, 3])// => 2const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]mean(objects, ({ n }) => n)// => 5
Find the mean of an array.