--

--

In simple words,

ForEach allows you to iterate over the list of items.

Map function allows you to perform Iteration AND transform the items, you can choose whether you want to transform or do you just want to iterate.

Example —

ForEach in the below example is iterating over the…

--

--