Skip to content

ObservableCollection.push

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

This method overrides ReadOnlyObservableCollection.push.

Appends new elements to the end of the collection, and returns the new length of the collection.

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

Source reference: src/collections/observableCollections/ObservableCollection.ts:40.

Parameters

  • items (rest): readonly TItem[]
    New elements to add at the end of the collection.

Returns: number

The new length of the collection.

See also

Clone this wiki locally