How to test same object instance in Javascript? -



How to test same object instance in Javascript? -

say have next objects in javascript:

var = { xxx: 33 }; var b = { xxx: 33 }; var c; c = a;

what javascript test tell me whether dealing same object instance? in other words, should homecoming false , b, b , c, true , c.

you need this

if(c == a) { // same instance }

a == b , b == c homecoming false

javascript instance

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -