Seems like the following code should return a true, but it returns false.
var a = {}; var b = {}; console.log(a==b); //returns false console.log(a===b); //
use JSON.stringify(objname); var a = {name : "name1"}; var b = {name : "name1"}; var c = JSON.stringify(a); var d = JSON.stringify(b); c==d; //true