Variable: maxAsync()
const
maxAsync: (asyncIterable
) =>AsyncOptional
<number
>
Defined in: statistics.d.ts:1171
Returns an async iterable containing a maximum value of asyncIterable
if
asyncIterable
contains at least one value. Otherwise, returns an empty
async iterable.
Parameters
asyncIterable
AsyncIterable
<number
>
Returns
AsyncOptional
<number
>
Example
console.log(await pipe(asAsync([4, 1, 5, -3]), maxAsync, getAsync))
//=> 5
Since
v0.0.1