ObservableMap.set - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ObservableMap<TKey, TItem> / set method
This method overrides ReadOnlyObservableMap.set.
Sets the provided item
at the given key
. If there is an entry already exists with the given key
, then it is replaced.
public set(
key: TKey,
item: TItem
): this
Source reference: src/collections/observableMap/ObservableMap.ts:25
.
-
key: TKey
The key to set the item at. -
item: TItem
The item to add to the map.
Returns: this
The observable map on which the operation is performed.