how to compare if name in object is greater in the other object code example
Example: Javascript compare two objects
var person1={first_name:"bob"};
var person2 = {first_name:"bob"};
//compare the two object
if(JSON.stringify(person1) === JSON.stringify(person2)){
//objects are the same
}