Skip to content

ObservableSet.add

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ObservableSet<TItem> / add method

This method overrides ReadOnlyObservableSet.add.

Ensures the provided item is in the set. There can be at most only one instance of an item in a set at any given time.

public add(
  item: TItem
): this

Source reference: src/collections/observableSet/ObservableSet.ts:23.

Parameters

  • item: TItem
    The item to add to the set.

Returns: this

The observable set on which the operation is performed.

See also

Clone this wiki locally