How to test same object instance in Javascript? September 11, 2023 by Tarik You just need this if(c == a) { // same instance } a == b and b == c will return false