Leave a Reply

12 Comments on "ECMAScript 6 / ES6 New Features – Tutorial 4 – Spread Operator"

Notify of
avatar

Tomáš Štrigner
Guest
Tomáš Štrigner
11 days 4 hours ago

1st example is not a good one. It was possible to spread array as arguments to function/method before. And as a bonus, it was possible to calling it under specific scope via funct.apply(scope, [argsArray]) like: function addNumbers(a, b, c) {   console.log(a + b +c);}var nums = [3, 5, 7];addNumbers.apply({},nums);

priya harish
Guest
priya harish
4 months 2 days ago

I learnt PHP from you. Had been procrastinating learning es6.. BUT not anymore!! lots of love Bucky!! <3 #rolemodel

Lucas Shanley
Guest
Lucas Shanley
4 months 5 days ago

Bucky I freaking love your vids!!! This solves the problem I have been having recently! Thanks yet again for the many years of great content 🙂

Martin Soušek
Guest
Martin Soušek
5 months 24 days ago

Now what if number of parameters of the function does not match the array length?

candh
Guest
candh
10 months 21 days ago

what the fuck

Rashad Kokash
Guest
Rashad Kokash
11 months 14 days ago

Could you please make the font bigger in future videos 😀

Dankest Elf
Guest
Dankest Elf
11 months 14 days ago

what about the apply function?

Allison Graves
Guest
Allison Graves
11 months 16 days ago

best operator but need to get used to it

Abeltensor
Guest
Abeltensor
11 months 16 days ago

annoying I can't get the spread operator to work in webstorm. I'm using es6 and have the babel watcher running but it keeps throwing an error, any tips Bucky?

〈FireMan/〉
Guest
〈FireMan/〉
11 months 16 days ago

just food for thoughteval(array.join("+"))var meats = ["bacon","ham"]var food = ["apples", meats, "Kiwi","rice"]

〈FireMan/〉
Guest
〈FireMan/〉
11 months 15 days ago

they are all ways of doing what he does in the video with vanilla javascript

Banjo_Bruh
Guest
Banjo_Bruh
11 months 16 days ago

what?

wpDiscuz