DEV Community

Discussion on: Understanding Javascript Array Series XII - Array Loops & Iteration Part IX

Collapse
 
chimexi_42 profile image
Chima Chidera Okoro

Is there any difference between the find and filter method?

Collapse
 
nedyudombat profile image
Nedy Udombat

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
 
chimexi_42 profile image
Chima Chidera Okoro

Okay thanks... helpful