Skip to content

ReadOnlyObservableCollection.indexOf

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

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

This is a public method.

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

Parameters

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

Returns: Number

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

See

Clone this wiki locally