How to create a function that accepts an unknown number of arguments in JavaScript
Avoid specifying manually the number of arguments that a function will accept.
Avoid specifying manually the number of arguments that a function will accept.
The spread operator lists the contents of an iterable in a comma-separated list.
Learn about all the new features introduced to JavaScript by ES2018 language update
Using the spread operator (...), we can easily capture iterable elements and use them elsewhere.