add
Adds the provided objects to the end of the list.
add(...targets: T[]): this
Parameters
- targets — 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 ManagedListA data structure that contains an ordered set of managed objects.