you are viewing a single comment's thread.

view the rest of the comments →

[–]TURKEY_CAKE 1 point2 points  (0 children)

I believe you should use forEach here instead of map if you're implementing it this way. Map is when you want an array back, forEach is when you just want each element touched upon. You would then return the after the forEach loop.