Skip to content

ReadOnlyObservableCollection.set

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

Sets the provided item at the provided index.

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

Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:856.

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