From 46a36d8d0939eb07cafb5e5f7bbc26562cd59923 Mon Sep 17 00:00:00 2001 From: Uzay G <52892257+Uzay-G@users.noreply.github.com> Date: Mon, 12 Aug 2019 08:48:12 +0000 Subject: [PATCH] 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 --- removeFromArray/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/removeFromArray/README.md b/removeFromArray/README.md index 44ee922..830a9ce 100644 --- a/removeFromArray/README.md +++ b/removeFromArray/README.md @@ -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). +