IReadOnlyObservableCollection.slice - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IReadOnlyObservableCollection<TItem> / slice method
Returns a new JavaScript Array containing the elements starting at the provided start
index up to, but not including, the provided end
index.
slice(
start?: number,
end?: number
): TItem[]
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:213
.
-
start:
number
The inclusive index at which to start the sub-array, accepts both positive and negative values. -
end:
number
The exclusive index at which the sub-array ends, accepts both positive and negative values.
Returns a new array containing items from the provided start
index up to the provided end
index.