Returns the largest number in an array.
An array of numbers.
The maximum value.
Will throw an error if the array is empty.
max([1, 2, 3]); // returns 3max([-10, 0, 10]); // returns 10 Copy
max([1, 2, 3]); // returns 3max([-10, 0, 10]); // returns 10
Returns the largest number in an array.