let str = [1,2,3,4,5,6,7,1,2,3];
let newstr = [...new Set(str)];
console.log(newstr)
本文标题:ES6 Set数组去重
本文链接:https://www.haomeiwen.com/subject/cxkuzktx.html
网友评论