I have an array "arr" that is an array of objects. Each object has the same 7 properties.

I want to find the index of the object with a property that matches a certain value x in the array arr. How can i accomplish this?

The array has hash tables associated with it.

arr [ obj [ i ] . property1 + "_" + obj [ i ] . property2 ] = arr [ i ] ;

so whats the index of the object where .property1 = x ?

Thanks, g