The three dots in JavaScript are the spread / rest operator . The spread syntax allows an expression to be expanded in places where multiple arguments are expected. The rest parameter syntax is used for functions with a variable number of arguments. The spread / rest operator for arrays was introduced in ES6 .
Read moreWhat are the three dots in JavaScript?
In this usage, the three dots are also called spread operator . As the name implies, we can unpack items of a JavaScript iterable (string, array, object and so on) with it.
Read more