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

Yeah this gets me every time. You can .forEach a NodeList, but can't .map. I usually end up wrapping it in an array and calling map on it like [...theNodeList].map(...)


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

Search: