Is it possible to override the equivalence comparison in Javascript?
The closest I have gotten to a solution is by defining the valueOf function and invoking valueOf
Adding (); may help depending on your requirement.
();
var Obj = function (val) { this.value = val; }();