JavaScript Array Methods

shift()

The shift() method returns the element that was shifted out.