What does find return when no array element makes its callback truthy?
Explanation
find returns undefined when no element qualifies, rather than returning a sentinel index. A qualifying element may itself contain undefined, so the return value alone cannot distinguish those situations.