Skip to content

ObservableCollection.set

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

This method overrides ReadOnlyObservableCollection.set.

Sets the provided item at the provided index.

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

Source reference: src/collections/observableCollections/ObservableCollection.ts:88.

Parameters

  • index: number
    The index to which to set the item.

  • item: TItem
    The item to set.

Returns: number

The length of the collection.

Clone this wiki locally