flash - ActionScript 3 - Removing Duplicates in ArrayCollection -
I have an array selection of list of user names and user IDs. This list contains duplicates that I need to remove I have searched the Internet and when there are so many examples of using it, then I can not get a clear example using the Arracklation.
Should be simple other solutions.
function removeDuplicatesInArray (val: *, index: uint, array: array): boolean {return array.indexOf (val) == array .last indexoff (val); } Function RemovedNipPlantsIncollection (archive: Arrayculation): ArrayConption {collection.source = collection.source.filter (Deleted duplicates); Return collection; }
Comments
Post a Comment