Skip to content

ReadOnlyObservableCollection.with

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

Returns a JavaScript Array containing the elements from the collection and having the one at the provided index replaced with the provided value.

This is a public method.

public with(index: number, value: TItem): TItem[]

Parameters

  • index: Number, the zero-based location in the collection where to set the item in the result array.
  • value: TItem, the item to set in the result array.

Returns: TItem[]

A new Array containing the elements of the collection having the provided value set at the provided index.

See

Clone this wiki locally