Removes the first element from an array and returns that element.
function shift() : Object
The shift method removes the first element from an array and returns it.
Version 5.5
Array Object