/ Published in: ActionScript
Remove Duplicates from Array
Expand |
Embed | Plain Text
Array.prototype._unique = function() { /* * Kills duplicates in an array */ var obj={}, i=this.length, arr=[],t; while(i--) t=this[i],obj[t]=t; for(i in obj) arr.push(obj[i]); return arr; };// End Function
You need to login to post a comment.
