Features Of ES6 Part 5: The Spread

added by JavaScript Kicks
9/2/2014 1:46:08 PM

110 Views

The spread operator shares the same syntax we saw with rest parameters, a series of three dots (...). However, a rest parameter will collect individual parameters into an array when you use the dots in a function parameter definition, while the spread operator expands an array into individual parameters when using the dots in a function call.


0 comments