Variable: minByAsync
const
minByAsync:MinOrMaxByAsync
Defined in: statistics.d.ts:394
Returns an async iterable containing a minimum value of asyncIterable
based
on the fn
AsyncCompare function if asyncIterable
contains at
least one value. Otherwise, returns an empty async iterable.
Example
console.log(
await pipe(
asAsync([`eating`, `sleeping`, `yawning`]),
minByAsync((a, b) => a.length - b.length),
getAsync,
),
)
//=> eating
Since
v0.0.1