JavaScript数组去重On this page数组去重ES6语法利用了Set结构不能接收重复数据的特点functionnoRepeat(arr){ varnewArr = [...newSet(arr)]; returnnewArr}