$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #111

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 (also accepted: find, find())

find() returns the first element matching the predicate.
Play Problem Solving ▸