Share via


unshift Method (JScript 5.6) 

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.

Requirements

Version 5.5

Applies To: Array Object (JScript 5.6)

See Also

Reference

shift Method (JScript 5.6)