• Sunday , 19 November 2017

JavaScript spread operator and rest parameters tutorial ES6 / ES2015

Code Canyon



Understand new features of JavaScript ECMA6 – spread operator and rest parameters.

The spread operator allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected.

– What is spread operator
– Benefits of using spread operator
– Improving performance using spread operator
– Passing spread operator as a function parameter makes it rest parameters.
– Using spread operator in arrays
– Using spread operator to do array.push

Original source

3d Ocean

Related Posts

17 Comments

  1. manoj antony
    July 26, 2017 at 18:36

    Understandable examples, please post more concepts on ES6 and TypeScript 🙂

  2. Alan Leszczuk
    July 26, 2017 at 18:36

    You are sooooo greeeaaaat!..as I said before. 🙂 You're doing great job with ES6!
    Looking forward for some TypeScript videos! 😉

  3. Игорь Спиридонов
    July 26, 2017 at 18:36

    [1,2,3].concat([4,5,6])
    not a big problem.

    … is really usefull as deep copy operator:
    b = { …a }

  4. Ricky Garcia
    July 26, 2017 at 18:36

    Dear lord, that thumbnail.

  5. Anshul Bisht
    July 26, 2017 at 18:36

    var x=function(){
    console.log(arguments[0]);
    };
    x(1,2,3); this will give o/p=>1 how is this possible if arguments is not an array ??

  6. Mahesh Singh Sawant
    July 26, 2017 at 18:36

    highly underrated, please do come back with more videos. maybe videos on React or Angular !

  7. Rodolfo Rivera
    July 26, 2017 at 18:36

    I just stumbled upon your channel: Thank You!

  8. shapan dashore
    July 26, 2017 at 18:36

    Noice!!!

  9. sara ines calderon
    July 26, 2017 at 18:36

    thanks!

  10. Vinod Mohanan
    July 26, 2017 at 18:36

    clean and to the point….

  11. Joakim Mohn
    July 26, 2017 at 18:36

    never ever use that shirt again please.

  12. Do D
    July 26, 2017 at 18:36

    Very helpful videos.
    I like the idea of not having you in a small window at the right bottom corner any more but now you are floating on the screen background (-;

  13. Koteswara Siva Kumar Devineni
    July 26, 2017 at 18:36

    Hi sir… as requested, i am eagerly waiting if you can make a video on creating a sample JS API using the whole concepts you taught us.

  14. Nick
    July 26, 2017 at 18:36

    When turnings the array like object of 'arguments' into an array, you can simply do:
    let args = Array.from(arguments);
    for simplicity sake instead of the Array.prototype.slice.call funkiness.
    Also you should be using 'let' and 'const' instead of 'var' for declaring variables.

  15. Koteswara Siva Kumar Devineni
    July 26, 2017 at 18:36

    Thanks sir.. your videos are the best for practice
     and gives us some ideas to think on real stuff.

  16. Norema Nosini
    July 26, 2017 at 18:36

    My parameters are better than the rest 😉

  17. Shampoo Wow
    July 26, 2017 at 18:36

    Awesome video! I like it

Leave A Comment

You must be logged in to post a comment.