IObservableSet.add - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IObservableSet<TItem> / add method
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.
add(
item: TItem
): this
Source reference: src/collections/observableSet/IObservableSet.ts:14
.
-
item: TItem
The item to add to the set.
Returns: this
The observable set on which the operation is performed.