Skip to content

ReadOnlyObservableSet.difference

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

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

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

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

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