Skip to content

ObservableMap.set

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

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.

Parameters

  • 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.

See also

Clone this wiki locally