var arr1=new Array('dsda','fjjd','fhhd','dsda','fhhd','dsda'); var arr2=[]; for(var i in arr1){ if(arr2.indexOf(arr1[i])==-1)arr2.push(arr1[i]); } alert(arr2)