When you want to provide an arbitrary number of parameters to a function where you are not aware of how much it will be; then you can simply use the rest parameter to take care of it.
Link: https://codeomelet.com/posts/rest-your-love-on-javascript
When you want to provide an arbitrary number of parameters to a function where you are not aware of how much it will be; then you can simply use the rest parameter to take care of it.
Link: https://codeomelet.com/posts/rest-your-love-on-javascript