This documentation is archived and is not being maintained.
push Method
Visual Studio 2010
Appends new elements to an array, and returns the new length of the array.
function push([item1 : Object [, ... [, itemN : Object]]]) : Number
The push and pop methods enable you to simulate a stack, which uses the principle of last in, first out (LIFO) to store data.
The push method appends elements in the order in which they appear. If one of the arguments is an array, it is added as a single element. Use the concat method to join the elements from two or more arrays.
Show: