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!
En esta página del sitio puede ver el video en línea Array 'shift' method in Javascript (Array.prototype.shift) de Duración hora minuto segunda en buena calidad , que subió el usuario dcode 24 diciembre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,021 veces y le gustó 32 a los espectadores. Disfruta viendo!