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:
Uzay G 2019-08-12 08:48:12 +00:00 committed by GitHub
parent cc479b5e70
commit 46a36d8d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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).