会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
密蒙
博客园
首页
新随笔
联系
订阅
管理
2021年3月5日
es6的_.unionBy和Math.floor的用法
摘要: import * as _ from 'lodash'; const arr= _.unionBy([2.1,1.2,2.9,1.8,3.5,9.6],Math.floor); console.log('arr:'+arr); 返回结果:arr:2.1,1.2,3.5,9.6 unionBy用来对数
阅读全文
posted @ 2021-03-05 11:07 密蒙
阅读(226)
评论(0)
推荐(0)
编辑
公告