class MyClass {
returnSame(arr){
return arr;
}
}
var myClass = new MyClass();
console.log( [1] == myClass.returnSame([1]) );
I'm expecting the log to be true, but it's false. I'm sure this has to do with some fundamental principle of JavaScript that has managed to pass me by.
Why is this not true?