Understanding Javascript Array Series XII - Array Loops & Iteration Part IX Nedy Udombat on October 14, 2019 In the previous article, I talked about iterating over arrays using the Array.find() array method. You can check it out below: ... Read full post Submit Preview Dismiss Collapse Expand Chima Chidera Okoro Chima Chidera Okoro Chima Chidera Okoro Follow Just a you guy who loves tech Location Abuja Joined Sep 7, 2019 • Oct 14 '19 Dropdown menu Copy link Hide Is there any difference between the find and filter method? Collapse Expand Nedy Udombat Nedy Udombat Nedy Udombat Follow Software Engineer Email nedyudombat@gmail.com Location Lagos, Nigeria Work Software Engineer at Enle Joined Jan 3, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Yes, the find method looks for the first element that first a particular criterion while the filter element gets all the element that fits a criteria and stores them in a new array. Collapse Expand Chima Chidera Okoro Chima Chidera Okoro Chima Chidera Okoro Follow Just a you guy who loves tech Location Abuja Joined Sep 7, 2019 • Oct 14 '19 Dropdown menu Copy link Hide Okay thanks... helpful Collapse Expand Naza Naza Naza Follow I'm a girl who loves to code Location Lagos,Nigeria Work Student at Not working Joined Oct 8, 2019 • Oct 14 '19 Dropdown menu Copy link Hide Nice Collapse Expand Nedy Udombat Nedy Udombat Nedy Udombat Follow Software Engineer Email nedyudombat@gmail.com Location Lagos, Nigeria Work Software Engineer at Enle Joined Jan 3, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Thank you @__naaza Collapse Expand Oluwadamilare Alonge Oluwadamilare Alonge Oluwadamilare Alonge Follow I'm a Mobile app developer and web developer Joined Oct 2, 2019 • Oct 14 '19 Dropdown menu Copy link Hide This is really good Collapse Expand Nedy Udombat Nedy Udombat Nedy Udombat Follow Software Engineer Email nedyudombat@gmail.com Location Lagos, Nigeria Work Software Engineer at Enle Joined Jan 3, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Thank you @dreman3082 Collapse Expand Vick Greenfields Vick Greenfields Vick Greenfields Follow Ready to change the world, one line of code at a time Location Benin City, Nigeria Education Andela Learning Community with Microsoft Work Software Engineer at Patricia Joined Dec 21, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Well done, in summary, arr.find() finds a described value while arr.findIndex() finds the index of such a value Collapse Expand Nedy Udombat Nedy Udombat Nedy Udombat Follow Software Engineer Email nedyudombat@gmail.com Location Lagos, Nigeria Work Software Engineer at Enle Joined Jan 3, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Yes @akintulovic. Collapse Expand bamiogunfemi bamiogunfemi bamiogunfemi Follow Frontend Engineer Email ayobamiarafat09@gmail.com Location Lagos, Nigeria Education Bsc Joined Oct 14, 2019 • Oct 14 '19 Dropdown menu Copy link Hide Awesome read Collapse Expand Nedy Udombat Nedy Udombat Nedy Udombat Follow Software Engineer Email nedyudombat@gmail.com Location Lagos, Nigeria Work Software Engineer at Enle Joined Jan 3, 2018 • Oct 14 '19 Dropdown menu Copy link Hide Thank you @bamiogunfemi Code of Conduct • Report abuse
Is there any difference between the find and filter method?
Yes, the find method looks for the first element that first a particular criterion while the filter element gets all the element that fits a criteria and stores them in a new array.
Okay thanks... helpful
Nice
Thank you @__naaza
This is really good
Thank you @dreman3082
Well done, in summary, arr.find() finds a described value while arr.findIndex() finds the index of such a value
Yes @akintulovic.
Awesome read
Thank you @bamiogunfemi