Computes the minimum value of array. If array is empty or falsey, undefined is returned.
array
undefined
The array to iterate over.
Returns the minimum value.
5.8.0
min([4, 2, 8, 6]);// => 2min([]);// => undefined Copy
min([4, 2, 8, 6]);// => 2min([]);// => undefined
Computes the minimum value of
array
. Ifarray
is empty or falsey,undefined
is returned.