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); //
This is a workaround: Object.toJSON(obj1) == Object.toJSON(obj2)
Object.toJSON(obj1) == Object.toJSON(obj2)
By converting to string, comprasion will basically be in strings