摘要: * find 遍历数组,找到第一个符合条件的项,并返回该项; 不会继续遍历数组;否则返回undefined; 不会改变数组; ``` [1,5,10,15].find(function(value,index,arr){ return value > 9 }) //10 ``` * findInde 阅读全文
posted @ 2023-06-26 15:24 大BUG 阅读(133) 评论(0) 推荐(0) 编辑