Function: countConcur()
countConcur<
Value
>(concurIterable
):Promise
<number
>
Returns a promise that resolves to the number of values in concurIterable
.
Like Array.prototype.length
, but for concur iterables.
Type Parameters
• Value
Parameters
• concurIterable: ConcurIterable
<Value
>
Returns
Promise
<number
>
Example
console.log(
await countConcur(asConcur([`sloth`, `more sloth`, `even more sloth`])),
)
//=> 3