From 3f2744e9e5fac20c9d758c39accc572204f9d34e Mon Sep 17 00:00:00 2001 From: howardbdev Date: Tue, 20 Jul 2021 16:34:10 -0400 Subject: [PATCH] fix snippets/hide.md --- snippets/hide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/hide.md b/snippets/hide.md index 89a544d39..c4d1af1a8 100644 --- a/snippets/hide.md +++ b/snippets/hide.md @@ -10,7 +10,7 @@ Hides all the elements specified. - Use `NodeList.prototype.forEach()` to apply `display: none` to each element specified. ```js -const hide = (...el) => [...el].forEach(e => (e.style.display = 'none')); +const hide = nodes => nodes.forEach(e => (e.style.display = 'none')); ``` ```js