IReadOnlyObservableSet.difference - Andrei15193/react-model-view-viewmodel GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️