ObservableCollection.pop - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ObservableCollection<TItem> / pop method
This method overrides ReadOnlyObservableCollection.pop.
Removes the last element from the collection and returns it. If the collection is empty, undefined
is returned.
public pop(): undefined | TItem
Source reference: src/collections/observableCollections/ObservableCollection.ts:49
.
Returns: undefined
| TItem
The last element in the collection that was removed.