Question: javascript check if object is the same?
Answer: Comparing objects is easy, use === or Object.is(). This function returns true if they have the same reference and false if they do not. Again, let me stress, it is comparing the references to the objects, not the value of the objects. So, from Example 3, Object.is(obj1,obj2); would return false.