Function: firstConcur()
firstConcur<
Value
>(concurIterable
):ConcurIterable
<Value
>
Returns a concur iterable containing the first value of concurIterable
, or
an empty concur iterable if concurIterable
is empty.
Type Parameters
• Value
Parameters
• concurIterable: ConcurIterable
<Value
>
Returns
ConcurIterable
<Value
>
Example
console.log(
await pipe(
asConcur([`sloth`, `more sloth`, `even more sloth`]),
firstConcur,
reduceConcur(toArray()),
),
)
//=> [ 'sloth' ]