Hacker News new | past | comments | ask | show | jobs | submit login

Oh right.. thanks!

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




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: