/ Published in: ActionScript 3
Expand |
Embed | Plain Text
private function removeDuplicates (a:Array){ o:for(var i = 0, n = a.length; i < n; i++){ for(var x = 0, y = r.length; x < y; x++) { if(r[x]==a[i]) continue o; } r[r.length] = a[i]; } return r; }
You need to login to post a comment.
