// 查找数组中满足要求的第一个数组值 let arr= [2,3,4,5,1] // 1.完整的写法 let val = arr.find((item,index) => {if(item>3) { return true }})