Simplify hide

This commit is contained in:
Siarhei
2018-08-29 13:50:25 +04:00
parent 6fc8ef76a0
commit e35cb76b66
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
const hide = (...el) => [...el].forEach(e => (e.style.display = 'none'));
const hide = els => els.forEach(e => e.style.display = 'none');
module.exports = hide;