js获取数组中不重复的元素
const arr1 = [1,2,3, 3, 2]
const getUniqueArray = arr => [...new Set( arr)];
let res = getUniqueArray(arr1)
console.log(res)
这是我的签名
const arr1 = [1,2,3, 3, 2]
const getUniqueArray = arr => [...new Set( arr)];
let res = getUniqueArray(arr1)
console.log(res)