The shift method allows you to remove the first element in an Array - it will also return the removed element.
In this video we see it in action.
For your reference:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Nesta página do site você pode assistir ao vídeo on-line Array 'shift' method in Javascript (Array.prototype.shift) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário dcode 24 Dezembro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,021 vezes e gostou 32 espectadores. Boa visualização!