Leave a Reply

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

Notify of
avatar

Tomáš Štrigner
Guest
Tomáš Štrigner
8 months 8 days 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);

Tomáš Štrigner
Guest
Tomáš Štrigner
8 months 8 days 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
11 months 30 days ago

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

priya harish
Guest
priya harish
11 months 30 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
1 year 2 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 🙂

Lucas Shanley
Guest
Lucas Shanley
1 year 2 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
1 year 1 month ago

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

Martin Soušek
Guest
Martin Soušek
1 year 1 month ago

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

candh
Guest
candh
1 year 6 months ago

what the fuck

candh
Guest
candh
1 year 6 months ago

what the fuck

wpDiscuz