Removes the first element from an array and returns it.
arrayObj.shift( )
The required arrayObj reference is an Array object.
The shift method removes the first element from an array and returns it.
Version 5.5
unshift Method
Applies To: Array Object