Last active: 3 years ago
Number.valueOf
let x = 2; Number.prototype.valueOf = function () { return x++; }; const a = new Number(2); console.log(a == 2 && a == 3 && a == 4);