ObservableCollection.fill - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ObservableCollection<TItem> / fill method
This method overrides ReadOnlyObservableCollection.fill.
Fills the collection with the provided item
.
public fill(
item: TItem,
start?: number,
end?: number
): this
Source reference: src/collections/observableCollections/ObservableCollection.ts:142
.
-
item: TItem
The item to fill the collection with. -
start:
number
The index from which to start filling the collection, accepts both positive and negative values. -
end:
number
The index until which to fill the collection, accepts both positive and negative values.
Returns: this
The observable collection on which the operation is performed.