摘要: 一、利用 ES6 Set 去重(ES6 中最常用) function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15,15,false,false, undefine 阅读全文
posted @ 2024-06-14 12:02 时光独醒 阅读(1) 评论(0) 推荐(0) 编辑