Skip to content

IObservableCollection.reset

Andrei Fangli edited this page Jul 4, 2021 · 2 revisions

Resets the contents of the collection by clearing it and setting the provided items. Returns the new length of the collection. Similar to calling collection.splice(0, collection.length, ...items).

reset(...items: readonly TItem[]): number

Parameters

  • items: readonly TItem[], the new content of the collection.

Returns: Number

Returns the new length of the collection.

See

Clone this wiki locally