Skip to content

ReadOnlyObservableCollection.unshift

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

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

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

Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:779.

Parameters

  • items (rest): readonly TItem[]
    Elements to insert at the start of the collection.

Returns: number

The new length of the collection.

See also

Clone this wiki locally