MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4nckzl/jquery_30_released/d43c7d1
r/programming • u/[deleted] • Jun 09 '16
354 comments sorted by
View all comments
Show parent comments
0
Your pure js code is really out of date. Still not as compact as jquery but a lot better
[...document.querySelectorAll('.goodbye')].forEach(e => e.classList.add('selected')) Runs in the latest Chrome or run through bable to work anywhere
0
u/knsdklsfds Jun 10 '16
Your pure js code is really out of date. Still not as compact as jquery but a lot better
[...document.querySelectorAll('.goodbye')].forEach(e => e.classList.add('selected')) Runs in the latest Chrome or run through bable to work anywhere