Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: browser,css,beginner
|
||||
|
||||
Shows all the elements specified.
|
||||
|
||||
Use the spread operator (`...`) and `Array.prototype.forEach()` to clear the `display` property for each element specified.
|
||||
- Use the spread operator (`...`) and `Array.prototype.forEach()` to clear the `display` property for each element specified.
|
||||
|
||||
```js
|
||||
const show = (...el) => [...el].forEach(e => (e.style.display = ''));
|
||||
|
||||
Reference in New Issue
Block a user