var arr1=new Array('dsda','fjjd','fhhd','dsda','fhhd','dsda'); var obj ={}; for(var i in arr1){ obj[arr1[i]]=true; } arr1=[]; for(var key in obj){ arr1.push(key); } alert(arr1)