2022年10月19日

JavaScript数组常用数组函数

摘要: const arr = [1,12,13,4,5,6,7,8]; //找出符合条件的第一个元素,并返回。 否返回undefined const fount = arr.find((x)=>{ return typeof(x) "number"; }) console.log('查找-find ', 阅读全文

posted @ 2022-10-19 13:33 totau 阅读(33) 评论(0) 推荐(0) 编辑

导航