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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -