Calculates the average of an array of numbers.
The array of numbers.
The average of all numbers in the array.
an error if the input array is empty.
const numbers = [1, 2, 3, 4, 5];arrAverage(numbers);//=> 3 Copy
const numbers = [1, 2, 3, 4, 5];arrAverage(numbers);//=> 3
Generated using TypeDoc
Calculates the average of an array of numbers.