+ 1
javascript rest-parameters
i haven't understood the rest parameters... can someone assist please
1 Answer
+ 3
When you have a variable number of arguments, you can convert them into an Array with rest parameters, and then apply Array method on the arguments.
See this demo by Paul:
https://code.sololearn.com/WKoFA3OmpVzY/?ref=app
https://www.sololearn.com/post/56637/?ref=app
https://code.sololearn.com/Wyr76080kKxS/?ref=app