ReadOnlyObservableCollection.includes - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ReadOnlyObservableCollection<TItem> / includes method
Checks whether the provided item is in the collection.
public includes(
item: TItem,
fromIndex?: number
): boolean
Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:626
.
-
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
.