摘要: 一、利用ES6 Set去重(ES6中最常用) function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15,15,false,false, undefined,u 阅读全文
posted @ 2022-02-11 15:05 土小狗 阅读(78) 评论(0) 推荐(0) 编辑