Variable: minWithAsync
const
minWithAsync:MinOrMaxWithAsync
Defined in: statistics.d.ts:778
Returns an async iterable containing a minimum value of asyncIterable
by
comparing the numerical values of each value, as defined by fn
, if
asyncIterable
contains at least one value. Otherwise, returns an empty
async iterable.
Example
console.log(
await pipe(
asAsync([`eating`, `sleeping`, `yawning`]),
minWithAsync(value => value.length),
getAsync,
),
)
//=> eating
Since
v0.0.1