Complete the function
// returns the first number greater than 10, or undefined
function firstBig(nums) {
return nums.____(n => n > 10);
}
// firstBig([5,12,20]) -> 12
Answer: find
find() returns the first element matching the predicate.
Play Problem Solving ▸