A number of JavaScript libraries these days, require strong understanding of the ES6 language. If you want to comfortably work with libraries like Redux, ReactJS, Relay, GraphQL it’s important to understand some of the latest concepts.
My first article/video in the series talks about Object Destructuring. The second one, discusses Array Destructuring. The third topic is on writing relaxed JSON. The fourth topic is about using Rest operators.
The topic I have discussed here is Spread Operator that allows you to expand iterables like arrays.
//...Spread operator let arr1 = [1,2,3] let arr2 = [4,5,6] //let numbers = [arr1,arr2] let numbers = [...arr1,...arr2] console.log(numbers); let original = [10,20,30] let copy = [...original] copy[0] = 100 console.log(original,copy);
You can watch the video here