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

Oh right.. thanks!

For some reason, I had it stuck in my mind that forEach() passed the index rather than the element.



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

Search: