IReadOnlyObservableCollection.toSpliced - Andrei15193/react-model-view-viewmodel GitHub Wiki

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

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

Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:307.

Parameters

  • start: number
    The index from which to start removing items, accepts both positive and negative values.

  • deleteCount: number
    The number of elements to remove.

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

Returns: TItem[]

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

See also

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