var a = new Array('dsda','fjjd','fhhd','dsda'),len = a.length,l; while (len--) {l=len; while (l--) { if(a[len]==a[l]) a.splice(len,1) }} alert(a);