摘要: 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) 编辑