Are you trying to find the duplicate references to the same object or two 
separate instances with the same property values?

You may not get what you want with toString() and is not needed if checking for 
duplicate references.


On 6/30/10 2:19 PM, "Warren" <[email protected]> wrote:






I have an array of simple objects from which I need to remove the duplicates.  
I'm thinking about creating a dictionary using as a key the toString value of 
each object.  I'll feed the dictionary by looping through the array, then loop 
over the dictionary and push the items into a new array.

I'm looking for a sanity check.  Is this a decent idea? Has anyone done it 
already and maybe more efficiently?

Thanks!

Warren





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to