Skip to content

ObservableCollection.set

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions

Sets the provided item at the provided index.

This is a public method.

public set(index: number, item: TItem): void

Parameters

  • index: Number, the index to which to set the item.
  • item: TItem, the item to set.

Throws: RangeError

Thrown when the index is outside the bounds of the collection.

Clone this wiki locally