Skip to content

ObservableCollection.shift

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions

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

This is a public method.

public 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