From 3376f8350d60879e90f91d820ea7ae0c68ab35d1 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 8 Jan 2018 18:22:14 +0800 Subject: [PATCH] fix hide err --- snippets/hide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/hide.md b/snippets/hide.md index 82a02a4b0..ea197954a 100644 --- a/snippets/hide.md +++ b/snippets/hide.md @@ -5,7 +5,7 @@ Hides all the elements specified. Use the spread operator (`...`) and `Array.forEach()` to apply `display: none` to each element specified. ```js -const hide = (...el) => [...el].forEach(e => (e.style.display = 'none')); +const hide = el => [...el].forEach(e => (e.style.display = 'none')); ``` ```js