You can use this method **Array.prototype.shift()**
It removes the first element from an array and returns that element.
solved How to remove the first element from an array? [closed]
You can use this method **Array.prototype.shift()**
It removes the first element from an array and returns that element.
solved How to remove the first element from an array? [closed]