Skip to content

IObservableCollection.shift

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

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

shift(): TItem | undefined

Returns: TItem

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

See

Clone this wiki locally