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

querySelectorAll returns a NodeList, which is even more limited than an array (e.g. no map or filter).


but [...querySelectorAll()] does return an array and is just as concise


but beware of ASI :)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: