IObservableMap.set - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IObservableMap<TKey, TItem> / set method
Sets the provided item
at the given key
. If there is an entry already exists with the given key
, then it is replaced.
set(
key: TKey,
item: TItem
): this
Source reference: src/collections/observableMap/IObservableMap.ts:16
.
-
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.