Returns the average value of the given array
Optional
the array to calculate
the average value of the given array
average([1, 2, 3]); // 2 Copy
average([1, 2, 3]); // 2
Returns the average value of the given array