Related

Leave a Reply

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);

0

| Reply - ShareHide Replies ∧

Guest

priya harish

7 months 24 days ago

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

0

| Reply - ShareHide Replies ∧

Guest

Lucas Shanley

7 months 27 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 🙂

0

| Reply - ShareHide Replies ∧

Guest

Martin Soušek

9 months 15 days ago

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

0

| Reply - ShareHide Replies ∧

Guest

candh

1 year 2 months ago

what the fuck

0

| Reply - ShareHide Replies ∧

Guest

Rashad Kokash

1 year 3 months ago

Could you please make the font bigger in future videos 😀

0

| Reply - ShareHide Replies ∧

Guest

Dankest Elf

1 year 3 months ago

what about the apply function?

0

| Reply - ShareHide Replies ∧

Guest

Allison Graves

1 year 3 months ago

best operator but need to get used to it

0

| Reply - ShareHide Replies ∧

Guest

Abeltensor

1 year 3 months 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?