#array
How to get array max value?
Suppose we have an array of integer values.
To get the max value we need the Math.max method.
This method accepts a list of params.
To convert the array of values to a list of params we need the spread operator.
That’s all.