how to compare 2 objects in javascript lodash code example
Example: lodash deep compare two objects
var bob = {"sex":"male","age":21};
var bill = {"sex":"male","age":21};
if(_.isEqual(bob, bill)){
//we are equal
}else{
//we are not equal
}
var bob = {"sex":"male","age":21};
var bill = {"sex":"male","age":21};
if(_.isEqual(bob, bill)){
//we are equal
}else{
//we are not equal
}