In C++ I can just print address of object and check if addresses are same. How can I do something similar in JavaScript ? I can't compare these two objects as I don't have references to them at the same time so I console.log the which gives me very long human readable object which is hard to compare.