3 ms·
If i'm following right, i think this expression would match? Array.from(document.getElementsByClassName("sth")).map(e => e.closest("ul")) The jQuery is de
by CraigJPerry 4y ago
If i'm following right, i think this expression would match?
Array.from(document.getElementsByClassName("sth")).map(e => e.closest("ul"))
The jQuery is definitely nicer to read than this though
- zimpenfish 4y agoYeah, that seems to do the same.