3 ms·
Oh right.. thanks! For some reason, I had it stuck in my mind that forEach() passed the index rather than the element.
by dhotson 17y ago
Oh right.. thanks!
For some reason, I had it stuck in my mind that forEach() passed the index rather than the element.