Leave a Reply

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

Notify of
avatar

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

Tomáš Štrigner
Guest
Tomáš Štrigner
6 months 8 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
9 months 21 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
9 months 21 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
9 months 24 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
9 months 24 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
11 months 12 days ago

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

Martin Soušek
Guest
Martin Soušek
11 months 12 days ago

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

candh
Guest
candh
1 year 4 months ago

what the fuck

candh
Guest
candh
1 year 4 months ago

what the fuck

wpDiscuz