The max method returns the greatest element in a list. It works only if the array's elements have the same type (e.g.: strings, numbers).
max
values.max
Last updated 2 years ago