4 lines
85 B
JavaScript
4 lines
85 B
JavaScript
function mean(a)
|
|
{
|
|
return a.length ? Functional.reduce('+', 0, a) / a.length : 0;
|
|
}
|