Looping through array

lets say i want to loop through array and get back a value, i dont think reduce is the right one either because iam not adding things .

i was looping through two array matching words, and return a true if like 5 words are matching, i did it with the normal for loop, which is out dated : D

iam really novice.

was considering using map or filter but i dont want an array back.

thanks for the help.

I don’t know where you get this “outdated” idea from, but rest assured that for loops are still going strong and often times more performant than other methods.

Each methods has its purpose, and in your case none of the “cool looking” one was made with that goal in mind :slight_smile:, therefore I would say that a loop is what is actually make more sense.