![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
![Joel Thoms 🍻 on Twitter: "💡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, Joel Thoms 🍻 on Twitter: "💡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,](https://pbs.twimg.com/media/EHK8M62WoAAUuCt.png)
Joel Thoms 🍻 on Twitter: "💡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,
Javascript performance test - for vs for each vs (map, reduce, filter, find). | by Deepak Gupta | Towards Data Science
Proful Sadangi on Twitter: "Javascript array functions map filter find reduce https://t.co/L3CmRYQMEM" / Twitter
![68 - JavaScript: Difference between sort(), filter(), map(), reduce() methods - (தமிழில்) (Tamil) - YouTube 68 - JavaScript: Difference between sort(), filter(), map(), reduce() methods - (தமிழில்) (Tamil) - YouTube](https://i.ytimg.com/vi/hTyD4n2EiY8/maxresdefault.jpg)