Skip to content

ReadOnlyObservableSet.union

github-actions[bot] edited this page Feb 4, 2025 · 4 revisions

Generates a set that contains all items from both the current and the provided collection.

public union(
  other: Iterable<TItem> | ISetLike<TItem> | Set<TItem>
): Set<TItem>

Source reference: src/collections/observableSet/ReadOnlyObservableSet.ts:191.

Parameters

Returns: Set<TItem>

Returns a new set containing all items from both the current and the provided collection.

See also

Clone this wiki locally