Skip to content

IObservableMap.set

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

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.

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