IObservableCollection.unshift - Andrei15193/react-model-view-viewmodel GitHub Wiki

API / IObservableCollection<TItem> / unshift method

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

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

Source reference: src/collections/observableCollections/IObservableCollection.ts:36.

Parameters

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

Returns: number

The new length of the collection.

See also

⚠️ **GitHub.com Fallback** ⚠️