Skip to content

ReadOnlyObservableCollection.lastIndexOf

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions

Returns the last index of an item, or -1 if none can be found.

This is a public method.

public lastIndexOf(searchElement: TItem, fromIndex?: number): number

Parameters

  • searchElement: TItem, the item to search for.
  • fromIndex: Number, optional, the index from where to start searching backwards.

Returns: Number

Returns the index where the provided searchElement was last found; otherwise -1.

See

Clone this wiki locally