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 :)




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

Search: