find() 方法返回数组中满足提供的测试函数的第一个元素的值。否则返回 undefined。

const list = [1, 2, 3, 4, 5];
list.find((el) => el === 3); // 3
list.find((el) => el === 7); // undefined