Find the maximum in an array.
An array.
Optional
The iteratee invoked on each element.
Returns the maximum.
0.5.1
max([1, 2, 3])// => 3const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]max(objects, ({ n }) => n)// => 8 Copy
max([1, 2, 3])// => 3const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]max(objects, ({ n }) => n)// => 8
Find the maximum in an array.