35
rated 0 times
[
37]
[
2]
/ answers: 1 / hits: 29879
/ 11 Years ago, thu, january 30, 2014, 12:00:00
Is there a way to know that 2 javascript variable point to the same memory address ?
var my_var = {
id: 1,
attribute: myAttribute
}
var copy = my_var;
//someting like
if(copy === my_var) return true;
More From » javascript