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