JS When to use - forEach, map, filter, find

JS When to use - forEach, map, filter, find

·

1 min read

Table of contents

No heading

No headings in the article.

Twitter Youtube

Method name says most.

Let's understand based on the case instead generalizing:

Just think through each method vs the action to be performed in your case.

Case 1:

Screenshot 2022-01-14 at 5.11.09 PM.png

Case 2:

Screenshot 2022-01-14 at 5.22.12 PM.png