JScript  

shift Method

Removes the first element from an array and returns it.

arrayObj.shift( )

The required arrayObj reference is an Array object.

Remarks

The shift method removes the first element from an array and returns it.

Requirements

Version 5.5

See Also

unshift Method

Applies To: Array Object