ReadOnlyObservableCollection.lastIndexOf - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ReadOnlyObservableCollection<TItem> / lastIndexOf method
Returns the last index of an item, or -1
if none can be found.
public lastIndexOf(
searchElement: TItem,
fromIndex?: number
): number
Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:273
.
-
searchElement: TItem
The item to search for. -
fromIndex:
number
The index from where to start searching backwards.
Returns: number
Returns the index where the provided searchElement
was last found; otherwise -1
.