Skip to content

ReadOnlyObservableCollection.lastIndexOf

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

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:269.

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

Clone this wiki locally