Please login to post.
rashmigar @rashmigar
rashmigar @rashmigar
https://docs.vultr.com/javascript/standard-library/Array/shift
In JavaScript, the shift() method is used to remove the first element from an array and shift all other elements to a lower index. This method modifies the original array and returns the removed element. If the array is empty, shift() returns undefined.

