Skip to content

ObservableSet.delete

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

This method overrides ReadOnlyObservableSet.delete.

Ensures the provided item is not in the set.

public delete(
  item: TItem
): boolean

Source reference: src/collections/observableSet/ObservableSet.ts:33.

Parameters

  • item: TItem
    The item to remove from the set.

Returns: boolean

Returns true if the provided item was found and removed from the set; otherwise false.

See also

Clone this wiki locally