Hacker News new | past | comments | ask | show | jobs | submit login

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



Yeah, that seems to do the same.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: