const arr = [1,2,33,45,'ee','11','-',1.9923]
let arr1 = arr.filter((item, i) =>(typeof item !
一行代码提取数组中的数字,仅数字
最新推荐文章于 2023-09-07 19:45:08 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
const arr = [1,2,33,45,'ee','11','-',1.9923]
let arr1 = arr.filter((item, i) =>(typeof item !