function arrQC(arr){ let temp = []; arr.forEach((item,idx)=>{ if(temp.indexOf(item)<0){ temp.push(item) } }) return temp; }
js-数组去重
原文:https://www.cnblogs.com/huangmin1992/p/10152599.html