IReadOnlyObservableCollection.includes - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IReadOnlyObservableCollection<TItem> / includes method
Checks whether the provided item is in the collection.
includes(
item: TItem,
fromIndex?: number
): boolean
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:87
.
-
item: TItem
The item to search for. -
fromIndex:
number
The index from where to start the search.
Returns: boolean
Returns true
if the provided item is found in the collection; otherwise false
.