Function: dropWhileConcur()
Returns a concur iterable containing the values of concurIterable
in
iteration order starting with the first value for which fn
returns a value
awaitable to a falsy value.
Example
console.log(
await pipe(
asConcur([1, 2, 3, 4, 5, 6, 7, 8, `sloth`]),
dropWhileConcur(value => value < 5),
reduceConcur(toArray()),
),
)
//=> [ 5, 6, 7, 8, 'sloth' ]
dropWhileConcur(fn)
dropWhileConcur<
Value
>(fn
): (concurIterable
) =>ConcurIterable
<Value
>
Returns a concur iterable containing the values of concurIterable
in
iteration order starting with the first value for which fn
returns a value
awaitable to a falsy value.
Type Parameters
• Value
Parameters
• fn
Returns
Function
Parameters
• concurIterable: ConcurIterable
<Value
>
Returns
ConcurIterable
<Value
>
Example
console.log(
await pipe(
asConcur([1, 2, 3, 4, 5, 6, 7, 8, `sloth`]),
dropWhileConcur(value => value < 5),
reduceConcur(toArray()),
),
)
//=> [ 5, 6, 7, 8, 'sloth' ]
Defined in
dropWhileConcur(fn, concurIterable)
dropWhileConcur<
Value
>(fn
,concurIterable
):ConcurIterable
<Value
>
Returns a concur iterable containing the values of concurIterable
in
iteration order starting with the first value for which fn
returns a value
awaitable to a falsy value.
Type Parameters
• Value
Parameters
• fn
• concurIterable: ConcurIterable
<Value
>
Returns
ConcurIterable
<Value
>
Example
console.log(
await pipe(
asConcur([1, 2, 3, 4, 5, 6, 7, 8, `sloth`]),
dropWhileConcur(value => value < 5),
reduceConcur(toArray()),
),
)
//=> [ 5, 6, 7, 8, 'sloth' ]