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!
На этой странице сайта вы можете посмотреть видео онлайн Array 'shift' method in Javascript (Array.prototype.shift) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dcode 24 Декабрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,021 раз и оно понравилось 32 зрителям. Приятного просмотра!