Skip to content

union

union<T>(iterables, comparisonStrategy?): Iterable<T>

Defined in: set/union.ts:14

Computes the union of any number of iterables.

Time complexity: O(n) total across every source iterable, under the default "sameValueZero".

T

readonly Iterable<T, any, any>[]

The iterables to union.

EqualityComparisonStrategy<T, T> = "sameValueZero"

The equality comparison strategy to use.

Iterable<T>

A Set containing every distinct element across all iterables.