![Why onClick run TWICE/ Why Array.map() vs Array.filter() returned different result - JavaScript - The freeCodeCamp Forum Why onClick run TWICE/ Why Array.map() vs Array.filter() returned different result - JavaScript - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/4X/6/6/e/66e35c74d7a02d204c7efdb61b5c3e13d9edabb5.png)
Why onClick run TWICE/ Why Array.map() vs Array.filter() returned different result - JavaScript - The freeCodeCamp Forum
![JavaScript — Filter, Map, Reduce. Get started with functional programming | by Adi S | Better Programming JavaScript — Filter, Map, Reduce. Get started with functional programming | by Adi S | Better Programming](https://miro.medium.com/v2/resize:fit:1116/1*T9-8hZsOB-ygY9NRxVg0sQ.png)
JavaScript — Filter, Map, Reduce. Get started with functional programming | by Adi S | Better Programming
![Mastering JavaScript's Map, Filter, and Reduce Methods: A Comprehensive Guide | by Master raj | Medium Mastering JavaScript's Map, Filter, and Reduce Methods: A Comprehensive Guide | by Master raj | Medium](https://miro.medium.com/v2/resize:fit:1400/1*8qNeaxqiR1pbHcCtEWT8rA.jpeg)
Mastering JavaScript's Map, Filter, and Reduce Methods: A Comprehensive Guide | by Master raj | Medium
![When to Use forEach, map, filter, find, and reduce on JavaScript Arrays | JavaScript in Plain English When to Use forEach, map, filter, find, and reduce on JavaScript Arrays | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:1000/1*K_gZ8Oc4xkv9VOARcthZqQ.png)
When to Use forEach, map, filter, find, and reduce on JavaScript Arrays | JavaScript in Plain English
![Joel Thoms on X: "💡TIP: filter and then map will loop through the array twice. This may (or may not) have a performance impact. To loop through the list one time, you Joel Thoms on X: "💡TIP: filter and then map will loop through the array twice. This may (or may not) have a performance impact. To loop through the list one time, you](https://pbs.twimg.com/media/EHK8M62WoAAUuCt.png)