Skip to content

ReadOnlyObservableCollection.slice

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions

Returns a new JavaScript Array containing the elements starting at the provided start index up to, but not including, the provided end index.

This is a public method.

public slice(start?: number, end?: number): TItem[]

Parameters

  • start: Number, optional, the inclusive index at which to start the sub-array.
  • end: Number, optional, the exclusive index at which the sub-array ends.

Returns: TItem[]

Returns a new array containing items from the provided start index up to the provided end index.

See

Clone this wiki locally