Possible Duplicate:
Easiest way to find duplicate values in a JavaScript array
jQuery.unique on an array of strings
I'm trying to get a neighbor list by breadth-first search (to be specific: the indexes of same color neighbor balls in Block'd)
my function getWholeList(ballid)
return an array like
thelist=["ball_1","ball_13","ball_23","ball_1"]
and of course there are duplicates.
I tried to remove them with jQuery.unique(); but it does not work with strings I guess, so is there any way for this(making the array unique) ?
Thanks for any help..