Skip to content

ReadOnlyObservableCollection.pop

Andrei Fangli edited this page Jul 4, 2021 · 1 revision

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

This is a protected method.

protected pop(): TItem | undefined

Returns: TItem

Returns the removed element from the end of the collection or undefined if the collection is empty.

See

Clone this wiki locally