Input: mean([2, 4, 6]) Output: 4
Input: mean([]) Output: NaN
Return the arithmetic mean of an array of numbers without changing the input.