Skip to content

ReadOnlyObservableCollection.toSpliced

Andrei Fangli edited this page Sep 3, 2023 · 1 revision

Returns a JavaScript Array containing the spliced items of the collection.

This is a public method.

public toSpliced(start: number, deleteCount?: number, ...items: readonly TItem[]): TItem[]

Parameters

  • start: Number, the zero-based location in the collection from which to start removing elements.
  • deleteCount: Number, optional, the number of elements to remove.
  • items: readonly TItem[], optional, the items to insert at the given start location.

Returns: TItem[]

A new Array without the removed items and containing the replacements.

See

Clone this wiki locally