...
) and Array.prototype.forEach()
to clear the display
property for each element specified.const show = (...el) => [...el].forEach(e => (e.style.display = ''));
show(...document.querySelectorAll('img')); // Shows all <img> elements on the page
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️