会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Newman·Li
博客园
首页
新随笔
联系
订阅
管理
2017年8月30日
Array对象的方法实现(4)----Array.prototype.findIndex和Array.prototype.forEach(实现常规参数的功能)
摘要: 8,Array的findIndex方法findIndex()方法返回数组中满足提供的测试函数的第一个元素的索引。否则返回-1。语法:arr.findIndex(callback[, thisArg])注意:1,有返回值(找到的第一个元素下标或者没找到的-1)。2,不改...
阅读全文
posted @ 2017-08-30 15:00 Newman·Li
阅读(170)
评论(0)
推荐(0)
公告