Skip to content

ReadOnlyObservableCollection.splice

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

Removes and/or adds elements to the collection and returns the deleted elements.

protected splice(
  start: number,
  deleteCount?: number,
  ...items: readonly TItem[]
): TItem[]

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

Parameters

  • start: number
    The zero-based location in the collection from which to start removing elements.

  • deleteCount: number
    The number of elements to remove.

  • items (rest): readonly TItem[]
    The items to insert at the given start location.

Returns: TItem[]

An array containing the elements that were deleted.

See also

Clone this wiki locally