Well objects are treated as reference, or memory pointer, so it is not possible to use === or == to compare the two. A quick way to compare the two objects is to see if they have the same value in the key. This can be done using JSON.stringify. Another way is to use the Lodash function isEqual.
const ob1 = {obj: 'A'};
const ob2 = {obj: 'A'};
// JavaScript
JSON.stringify(ob1) === JSON.stringify(ob2); // true
// Lodash
_.isEqual(ob1, ob2); // true
A note in case you choose to use JSON.stringify()
keep in mind that the order of things (the key value pair) is important, so if they are not in the objects in the same order the result will be different.