摘要: 思路:数组转set集合,set集合再转为数组 let array = Array.from(new Set([1, 1, 1, 2, 3, 2, 4])); console.log(array); // => [1, 2, 3, 4] 阅读全文
posted @ 2019-05-27 11:23 路过sayhi 阅读(136) 评论(0) 推荐(0) 编辑