Skip to content

ObservableCollection.unshift

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions
API / ObservableCollection<TItem> / unshift method

Inserts new elements at the start of the collection, and returns the new length of the collection.

This is a public method.

public unshift(...items: readonly TItem[]): number

Parameters

  • items: readonly TItem[], elements to insert at the start of the collection.

Returns: Number

Returns the new length of the collection.

See

Clone this wiki locally