add()
Adds the provided objects to the end of the list.
add(...items: T[]): this;
Parameters
- items — The objects to add to the list
Errors
This method throws an error if one of the objects is already in the list. This method throws an error if one of the objects isn’t of the correct type (see restrict()).
Related
class ObservableList
A data structure that contains an ordered set of observable objects.
