微博
加入微博一起分享新鲜事
登录
|
注册
140
``` const arr = [1, 2, 3, 4, 5, 3, 3, 2, 4, 5 ] // 可以这么写 const index = arr.findIndex(item => { return item > 2 }) console.log(index) // 2 // 也可以这么写 const… https://tya.zone/p/88.html
请登录并选择要私信的好友
300
``` const arr = [1, 2, 3, 4, 5, 3, 3, 2, 4, 5 ] // 可以这么写 const index = arr.findIndex(item => { return item > 2 }) console.log(index) // 2 // 也可以这么写 const… https://tya.zone/p/88.html
赞一下这个内容
公开
分享
获取分享按钮
正在发布微博,请稍候