Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's why I do

  $ = (selector) => Array.from(document.querySelectorAll(selector))
Still not as good as the original, but somewhat usable at least :/


There are small libraries like umbrellajs that just provide a jquery-like DOM interface if that's all you want.




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

Search: