Skip to content

ReadOnlyObservableCollection.includes

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

Checks whether the provided item is in the collection.

public includes(
  item: TItem,
  fromIndex?: number
): boolean

Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:622.

Parameters

  • item: TItem
    The item to search for.

  • fromIndex: number
    The index from where to start the search.

Returns: boolean

Returns true if the provided item is found in the collection; otherwise false.

See also

Clone this wiki locally