ObservableCollection.set - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ObservableCollection<TItem> / set method
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
.
-
index:
number
The index to which to set the item. -
item: TItem
The item to set.
Returns: number
The length of the collection.