Skip to content

IReadOnlyObservableCollection.includes

github-actions[bot] edited this page Oct 24, 2024 · 2 revisions

Checks whether the provided item is in the collection.

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

Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:87.

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