Push
methodsAppends the given items to the array and returns the new length of the array. An equivalent of Array.prototype.push. The new items are wrapped as an ObservableObject if they are complex objects.
The
pushmethod raises thechangeevent. Theactionfield of the event argument is set to"add". Theitemsfield of the event argument is the array that contains the appended items.
Returns:Number
—The new length of the array.