replace()
Replaces the specified item with another object in-place.
replace(item: T, replacement: T): this;
Parameters
- item — The object to replace
- replacement — The object to replace the item with
Errors
This method throws an error if the item isn’t in the list, or if the replacement object is already in the list.
Related
class ObservableList
A data structure that contains an ordered set of observable objects.
