loading...

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]
markdown guide
 

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.

 
 
 

Well done, in summary, arr.find() finds a described value while arr.findIndex() finds the index of such a value

 
 
 
code of conduct - report abuse