ReadOnlyObservableCollection.splice - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ReadOnlyObservableCollection<TItem> / splice method
Removes and/or adds elements to the collection and returns the deleted elements.
protected splice(
start: number,
deleteCount?: number,
...items: readonly TItem[]
): TItem[]
Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:913
.
-
start:
number
The zero-based location in the collection from which to start removing elements. -
deleteCount:
number
The number of elements to remove. -
items (rest):
readonly
TItem[]
The items to insert at the given start location.
An array containing the elements that were deleted.