Array.prototype.shift()
The shift()
method removes the first element from an array and returns that removed element. This method changes the length of the array.
Last updated
The shift()
method removes the first element from an array and returns that removed element. This method changes the length of the array.
Last updated