Javascript Number repr()

Description

Javascript Number repr()


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



PreviousNext

Related