3 ms·
Vanilla JavaScript feels like jQuery now. Doing this was quite awkward in ECMAScript 3 and 5. > App.$.filters.querySelectorAll('a').forEach(el => el.classList.
by xdennis 4y ago
Vanilla JavaScript feels like jQuery now. Doing this was quite awkward in ECMAScript 3 and 5.
> App.$.filters.querySelectorAll('a').forEach(el => el.classList.remove('selected'));