Skip to content

ISetLike.has

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ISetLike<TItem> / has method

Checks whether the provided item is in the collection.

has(
  item: TItem
): boolean

Source reference: src/collections/observableSet/ISetLike.ts:25.

Parameters

  • item: TItem
    The item to search for.

Returns: boolean

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

See also

Clone this wiki locally