JavaScript forEach vs. map — When To Use Each and Why