Pergunta de entrevista da empresa GitLab

Difference between .forEach and .map?

Resposta da entrevista

Sigiloso

12 de mai. de 2019

.forEach loops over each item on an array. .map loops through all items of an array and returns a new array.