(js吊打面试官的数组去重) var s = new Set(); var arr = [1,2,3,2,3,1] arr.map((x,i)=> s.add(x)); var b =Array.from(s)