Skip to content

ObservableCollection.clear

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

Clears the contents of the collection and returns the removed items, similar to calling splice(0, collection.length).

This is a public method.

public clear(): TItem[]

Returns: TItem[]

An array containing the elements that were deleted.

See

Clone this wiki locally