In the function chapter, you learned about functions and their parameters. TypeScript introduced rest parameters to accommodate n number of parameters easily. When the number of parameters that a function will receive is not known or can vary , we can use rest parameters.
When would you use rest parameters in TypeScript?
In the function chapter, you learned about functions and their parameters. TypeScript introduced rest parameters to accommodate n number of parameters easily. When the number of parameters that a function will receive is not known or can vary , we can use rest parameters.