DEV Community

Discussion on: The moment I realized forEach() does not return anything.

Collapse
 
freebld profile image
Cristian

Hi, sorry I know it's just a code comment but in the first step when you iterate through the first array and tag items to true, your last output is dog. Should it not be kangaroo? πŸ€”
Thanks for this articleπŸ‘

Collapse
 
kaynguyen profile image
Kay N.

Hey my bad - I totally forgot about the guy! (poor little kangaroo!). Already put it back in with the gang! Thanksss for pointing this out! <3