Skip to content

IObservableCollection.pop

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

Removes the last element from the collection and returns it. If the collection is empty, undefined is returned.

pop(): undefined | TItem

Source reference: src/collections/observableCollections/IObservableCollection.ts:28.

Returns: undefined | TItem

The last element in the collection that was removed.

See also

Clone this wiki locally