3 ms·
It is possible to overload operators in JS through a horrible hack of valueOf(): http://webcache.googleusercontent.com/search?q=cache:DKKZb1PPYloJ:www.2ality.c
by Inviz 10y ago
It is possible to overload operators in JS through a horrible hack of valueOf():
http://webcache.googleusercontent.com/search?q=cache:DKKZb1PPYloJ:www.2ality.com/2011/12/fake-operator-overloading.html+&cd=1&hl=en&ct=clnk&gl=id http://webcache.googleusercontent.com/search?q=cache:DKKZb1P...
Discussion: https://news.ycombinator.com/item?id=8677721 https://news.ycombinator.com/item?id=8677721