![The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium](https://miro.medium.com/v2/resize:fit:1400/1*Sw1D_VaNTd2paOw4PrXQHw.png)
The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium
![JavaScript Arrays: push(), pop(), shift() & unshift() | by Amanda M Johnson | An Idea (by Ingenious Piece) | Medium JavaScript Arrays: push(), pop(), shift() & unshift() | by Amanda M Johnson | An Idea (by Ingenious Piece) | Medium](https://miro.medium.com/v2/resize:fit:1200/1*QWMaRhgoJdVj6sviBVadKA.jpeg)
JavaScript Arrays: push(), pop(), shift() & unshift() | by Amanda M Johnson | An Idea (by Ingenious Piece) | Medium
![The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium](https://miro.medium.com/v2/resize:fill:224:224/g:fp:0.3:0.44/1*uq5ZTlw6HLRRqbHaPYYL0g.png)
The best way to remove the first element of an array in Javascript — shift() vs splice() | by Eric Tong | Medium
![JavaScript Arrays: push(), pop(), shift() & unshift() | by Amanda M Johnson | An Idea (by Ingenious Piece) | Medium JavaScript Arrays: push(), pop(), shift() & unshift() | by Amanda M Johnson | An Idea (by Ingenious Piece) | Medium](https://miro.medium.com/v2/resize:fit:1400/1*o4qPoFPtSXNxHEBOuJqE4Q.png)