Docs (4.0.0)
class ManagedList method

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