Additional tests and updated hide footprint to match show

This commit is contained in:
Angelos Chalaris
2018-11-10 11:21:31 +02:00
parent 79ec21be2e
commit 761741f149
8 changed files with 4345 additions and 4329 deletions

View File

@ -5,7 +5,7 @@ Hides all the elements specified.
Use `NodeList.prototype.forEach()` to apply `display: none` to each element specified.
```js
const hide = els => els.forEach(e => (e.style.display = 'none'));
const hide = (...el) => [...el].forEach(e => (e.style.display = 'none'));
```
```js