JavaScript语法Set的用法
2020-08-31 本文已影响0人
AR7_
1、数组去重
let data = ["11", "22", "33", "11", "22"]
let result = Array.from(new Set(data))
console.log(result)
1、数组去重
let data = ["11", "22", "33", "11", "22"]
let result = Array.from(new Set(data))
console.log(result)