es6 Set去重

var arr = [1,2,3,4,2,3];new var arr1 = new Set(arr); arr = [...arr1] //[1,2,3,4]
相关文章
相关标签/搜索