Home | Top | Website design | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


unshift Method

Returns an array with specified elements inserted at the beginning.

arrayObj.unshift( [ item1 [, item2 [, . . . [, itemN ]]]] )

Arguments

arrayObj Required. An Array object. item1, item2,. . ., itemN Optional. Elements to insert at the start of the Array .

Remarks

The unshift method inserts elements into the start of an array, so they appear in the same order in which they appear in the argument list.

Home | Top | Website design | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.