shift Method 

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.

Show: