Possible Duplicate:
How do you determine equality for two JavaScript objects?
Is there an easy way to compare 2 separate custom objects for all thier properties if they are the same ?
Example:
   var obj1 = {
    a: 1,
    b: 1,
    c: 1
    };
    var obj2 = {
    c: 1,
    b: 1,
    a: 1
    }
 
     
    