predicate should be a function that accepts three arguments and returns a value that is coercible to the Boolean value true or false. find calls predicate once for each element present in the array, in ascending order, until predicate returns true and immediately returns the current array element. Otherwise, find returns null. predicate is called only for elements of the array which actually exist; it is not called for missing elements of the array.
- Let O be the result of ToObject passing the this value as the argument.
- ReturnIfAbrupt( O ).
- Let lenValue be the result of Get( O, "length" ).
- Let len be ToUint32( lenValue ).
- ReturnIfAbrupt( len ).
- If len is 0, return undefined.