Array.$add()

Method add(object[optional])
Description You can use add() method to extend an array by one element. This is usually used when you need to update the document state as a result of user action. object parameter is optional and defaults to an empty object {}. It is used to extend the array with default values.

Example