Find the first element matching a condition:
let numbers = [1, 5, 10, 15, 20]
let found = numbers.find(n => n > 8)
console.log(found) // 10 (first match)
let notFound = numbers.find(n => n > 100)
console.log(notFound) // undefined
The callback tests each element. find() returns the first element where the callback returns true, or undefined if none match.