Say I have the following objects in Javascript:
var a = { xxx: 33 }; var b = { xxx: 33 }; var c; c = a;
What is the Javascript test that will
Just a standard equality test:
( a == c ) // true ( a == b ) // false
You just need this
if(c == a) { // same instance }
a == b and b == c will return false
a == b
b == c
false