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!
In questa pagina del sito puoi guardare il video online Array 'shift' method in Javascript (Array.prototype.shift) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 24 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,021 volte e gli è piaciuto 32 spettatori. Buona visione!