Javascript Number repr()
repr()
Number.prototype.__repr__ = function() { if (this.isIn([NaN, Infinity, -Infinity])) { return null; }// w ww .j ava 2 s . co m return this; };