$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #258

What goes in the blank?

// first matching element, not its index
const found = items.____((i) => i.id === target);

Answer: find (also accepted: find, find())

find returns the element itself; findIndex returns its position.
Play Problem Solving ▸