{ f: 'b' } == { f: 'b' }  // => false

Is that what you're trying to test? If so, check this out:

http://github.com/ShiftSpace/set

On Sep 15, 2010, at 3:03 PM, Rolf -nl wrote:

> I have an array with objects and I want to check if the array contains
> a specific object or not (e.g. to find out if I need to add it or not,
> depending on the fact its already in it or not)
> 
> array.contains doesn't work as you know or can see here:
> http://www.jsfiddle.net/TjBp2/
> 
> ..but what is the fastest way to do such a thing?
> 
> TIA

Reply via email to