Maybe "x in y" loop is what you are looking for. Here is how you do it:
for(var p in object) // String p will be "one", "two", ... all the properties
{
if(object[p].x == 1 && object[p].y == 1) console.log(p);
}
Here is more info http://www.ecma-international.org/ecma-262/5.1/#sec-12.6.4 .