IReadOnlyObservableCollection.with - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IReadOnlyObservableCollection<TItem> / with method
Returns a JavaScript Array containing the elements from the collection and having the one at the provided index replaced with the provided value.
with(
index: number,
item: TItem
): TItem[]
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:69
.
-
index:
number
The index at which to set the item in the result array, accepts both positive and negative values. -
item: TItem
The item to set in the result array.
A new Array containing the elements of the collection having the provided value set at the provided index.