Hacker News new | ask | show | jobs
by dhotson 6033 days ago
Oh right.. thanks!

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