fix snippets/hide.md

This commit is contained in:
howardbdev
2021-07-20 16:34:10 -04:00
parent c16c7cb135
commit 3f2744e9e5

View File

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