Added ...rest parameters as a link to deal with optional parameters
Rest parameters are already arrays unlike 'arguments' and they can be used in arrow expressions. Just find it a bit simpler
This commit is contained in:
parent
cc479b5e70
commit
46a36d8d09
|
@ -13,3 +13,5 @@ the first test on this one is fairly easy, but there are a few things to think a
|
|||
- how to remove a single element from an array
|
||||
- how to deal with multiple optional arguments in a javascript function
|
||||
- [Check this link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments). Scroll down to the bit about `Array.from` or the spread operator.
|
||||
- [Or this link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters).
|
||||
|
||||
|
|
Loading…
Reference in New Issue