replaceAll()
Replaces (or moves) all items in this list with the specified items.
replaceAll(items: Iterable<T | undefined>): this;
Notes
- Existing items can be moved within the list if they’re included in the new list of objects.
- Items that aren’t included in the provided list are removed from the observable list.
- Items in the provided list that are not yet in the observable list are added such that the order of items matches that of the provided list.
Parameters
- items — The objects that this list should contain; either in an array or another ObservableList instance
Related
class ObservableList
A data structure that contains an ordered set of observable objects.
