摘要: 一、es6 Set去重 function removal(arr) { return Array.from(new Set(arr)) } let arr=[1,2,1,3,4,5,5] removal(arr)//[1, 2, 3, 4] 二、利用 filter function removal( 阅读全文
posted @ 2019-12-26 16:01 七月流火~ 阅读(266) 评论(0) 推荐(1) 编辑