4.17.11
3.10.1
2.4.2
1.3.1
_.max(array)
Computes the maximum value of array
. If array
is empty or falsey,
undefined
is returned.
Since
0.1.0
Arguments
argument
array
type
Array
description
The array to iterate over.
Returns
(array)
Example
_.max([4, 2, 8, 6]);
// => 8
_.max([]);
// => undefined
_.max([4, 2, 8, 6]);
// => 8
_.max([]);
// => undefined