In previous post, we started to look at some of the treats introduced in ES6 by looking at destructuring.
The spread syntax is quite simple. Say you got some elements in an iterable object — e.g. an array —, and you want to apply the elements it contains to a new array or a function call.
Usually, at this stage you would bring out the indexes and loops to start applying the elements. Luckily, the spread syntax makes this way easier. You simply prefix the iterable object you want to spread with three dots —
... read the whole story at www.deadcoderising.com.