Google News
logo
TypeScript - Interview Questions
What are Rest parameters?
The rest parameter is used to pass zero or more values to a function. It is declared by prefixing the three-dot characters (‘’)before the parameter. It allows the functions to have a variable number of arguments without using the arguments object. It is very useful where we have an undetermined number of parameters.
Advertisement