my idea is like this: put all the incoming arrays into a new array, and then traverse the new array to remove duplicates, but there are the following problems:
function tick(){
var result=[];
for(var i=0;i<arguments.length;iPP){
result=result.concat(arguments[i]);
}
for(var j=0;j<result.length;jPP){
var index=-1;
var flag=true;
while(index=(result.indexOf(result[j],index+1))!==-1){
if(flag){
flag=false;
continue;
}else{//indextrue1
result.splice(index,1);
}
}
}
return result;
}