0

How can I compare if two objects are equal in jQuery.

var a = { id:"1", name:"name"};
var b = { id:"1"};
b.name = "name";

How can I check for equality between a and b ? Is there a method similiar to .equals() in JAVA which can be overridden ?

Abhishek Singh
  • 10,243
  • 22
  • 74
  • 108

0 Answers0