ES6 - Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you Mr. Ian for the extra added examples const [a, b, ...arr] = list;

zken
Автор

That was my first option, but I wrote " return console.log(arr)" to try it. Didn't worked. I was 4 hours looking for error. So I saw your video and I could see my mistake. I erased "console.log" and voalá! Thank you!

thaisherminia
Автор

some hints for version 2022: do not use "a, b, " and "arr", arr got name already! ;)

TioUngaro
Автор

he really just read all the description loud!

dengxinj
join shbcf.ru