ReadOnlyObservableCollection.lastIndexOf - Andrei15193/react-model-view-viewmodel GitHub Wiki

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.

Parameters

  • 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.

See also

⚠️ **GitHub.com Fallback** ⚠️