function unique(a) { var temp = []; var temp2 = []; for (c in a) temp[a[c]] = c for (c in temp) temp2[temp[c]] = c return temp2; }
Monday, August 25, 2008
javascript unique array
Labels: array, javascript, unique
function unique(a) { var temp = []; var temp2 = []; for (c in a) temp[a[c]] = c for (c in temp) temp2[temp[c]] = c return temp2; }
Labels: array, javascript, unique