3 ms·
You can ovveride valueOf and do something like +p1 === +p2 Check this generic implementation https://jsfiddle.net/tas2n59L/ https://jsfiddle.net/tas2n59L/
by fbn79 4y ago
You can ovveride valueOf and do something like +p1 === +p2
Check this generic implementation https://jsfiddle.net/tas2n59L/ https://jsfiddle.net/tas2n59L/