I have multiple objects with x and y values,
var object = new Object();
     object.one = new Object(); 
         object.one.x = 0;
         object.one.y = 0;
     object.two = new Object();
         object.two.x = 1;
         object.two.y = 1;
How would you determine which object has an x and a y that = 1?
You could pass is an x and y value to a function.
function = function(x,y) {
    // code to find which objects x and y = parameters
};
 
     
     
     
    