Rest Parameters
introduction to rest parameters, calling functions with a variable number of arguments and its potential errors
We'll cover the following
The Rest parameters in ES2015 are worth learning. You can do cool things with it, and it often makes your code more compact than the equivalent ES5 code.
Rest parameters
In some cases, you might want to deal with processing a variable number of arguments. In ES5, it was possible to use the arguments
array inside a function to access them as an array:
Get hands-on with 1400+ tech skills courses.