Function: minMax()
Returns an iterable containing a MinMax value of iterable
if
iterable
contains at least one value. Otherwise, returns an empty iterable.
Parameters
iterable
Iterable
<number
, any
, any
>
Returns
Example
console.log(pipe([4, 1, 5, -3], minMax, get))
//=> { min: -3, max: 5 }
Since
v0.0.2