var arr = [2,8,0,"P",'H',"P","W",'E','B',8,0,"W"]; for(var i=0;i<arr.length;i++){ for(var j=i+1;j<arr.length;j++){ if(arr[i]==arr[j]){ arr.splice(j,1); } } j--; } console.log(arr)
var arr = [2,8,0,"P",'H',"P","W",'E','B',8,0,"W"]; for(var i=0;i<arr.length;i++){ for(var j=i+1;j<arr.length;j++){ if(arr[i]==arr[j]){ arr.splice(j,1); } } j--; } console.log(arr)