Skip to main content

Function: excludeConcur()

Returns a concur iterable containing the values of concurIterable in iteration order excluding the values of excluded.

Example

console.log(
await pipe(
asConcur([`sloth`, `sleep`, `fast`, `slow`, `mean`]),
excludeConcur([`mean`, `fast`]),
reduceConcur(toArray()),
),
)
//=> [ 'sloth', 'sleep', 'slow' ]

excludeConcur(excluded)

excludeConcur(excluded): <Value>(concurIterable) => ConcurIterable<Value>

Returns a concur iterable containing the values of concurIterable in iteration order excluding the values of excluded.

Parameters

excluded: Iterable<unknown, any, any>

Returns

Function

Type Parameters

Value

Parameters

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

Example

console.log(
await pipe(
asConcur([`sloth`, `sleep`, `fast`, `slow`, `mean`]),
excludeConcur([`mean`, `fast`]),
reduceConcur(toArray()),
),
)
//=> [ 'sloth', 'sleep', 'slow' ]

Defined in

filters.d.ts:298

excludeConcur(excluded, concurIterable)

excludeConcur<Value>(excluded, concurIterable): ConcurIterable<Value>

Returns a concur iterable containing the values of concurIterable in iteration order excluding the values of excluded.

Type Parameters

Value

Parameters

excluded: Iterable<unknown, any, any>

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

Example

console.log(
await pipe(
asConcur([`sloth`, `sleep`, `fast`, `slow`, `mean`]),
excludeConcur([`mean`, `fast`]),
reduceConcur(toArray()),
),
)
//=> [ 'sloth', 'sleep', 'slow' ]

Defined in

filters.d.ts:301