Skip to main content

Function: uniqueConcur()

uniqueConcur<Value>(concurIterable): ConcurIterable<Value>

Returns a concur iterable containing the values of concurIterable in iteration order, except values are deduplicated if they are equal using Object.is.

Type Parameters

Value

Parameters

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

Example

console.log(
await pipe(
asConcur([`sloth`, `not sloth`, `sloth`]),
uniqueConcur,
reduceConcur(toArray()),
),
)
//=> [ 'sloth', 'not sloth' ]

Defined in

filters.d.ts:461