The iterable object to search.
The 3-way comparison function to apply to the values.
It should return < 0 if the first value is less than the second.
0 if the values are equivalent, or > 0 if the first value is
greater than the second.
Generated using TypeDoc
Find the minimum value in an iterable.
Returns
The minimum value in the iterable. If multiple values are equivalent to the minimum, the left-most value is returned. If the iterable is empty, this returns
undefined.Complexity
Linear.
Example