How ... works in Javascript

By Dag Stuan.

View original

Excerpt: The ... operator that arrived to javascript with ES6 is really handy, and can be used in quite a lot of situations. Technically it is two different things; a Rest parameter and a spread operator. Let’s take a look at how they work.