8000 Added ...rest parameters as a link to deal with optional parameters · rmock002/javascript-exercises@46a36d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46a36d8

Browse files
authored
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
1 parent cc479b5 commit 46a36d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

removeFromArray/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ the first test on this one is fairly easy, but there are a few things to think a
1313
- how to remove a single element from an array
1414
- how to deal with multiple optional arguments in a javascript function
1515
- [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.
16+
- [Or this link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters).
17+

0 commit comments

Comments
 (0)
0