Skip to content

IReadOnlyObservableSet.difference

github-actions[bot] edited this page Feb 4, 2025 · 4 revisions
API / IReadOnlyObservableSet<TItem> / difference method

Generates a set that contains all items in the current one, but not in the provided collection.

difference(
  other: Iterable<TItem> | ISetLike<TItem> | Set<TItem>
): Set<TItem>

Source reference: src/collections/observableSet/IReadOnlyObservableSet.ts:82.

Parameters

  • other: Iterable<TItem> | ISetLike<TItem> | Set<TItem>
    The collection whose items to exclude from the result.

Returns: Set<TItem>

Returns a new set containing all items in the current one, but not in the provided collection.

See also

Clone this wiki locally