var bob = {"sex":"male","age":21}; var bill = {"sex":"male","age":21}; if(_.isEqual(bob, bill)){ //we are equal }else{ //we are not equal }