Share via


shift Method (JScript 5.6) 

Removes the first element from an array and returns it.


arrayObj.shift( )

Remarks

The required arrayObj reference is an Array object.

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

Requirements

Version 5.5

Applies To: Array Object (JScript 5.6)

See Also

Reference

unshift Method (JScript 5.6)