Javascript Number with_sign()

Description

Javascript Number with_sign()


Number.prototype.with_sign = function(){
 return ( this > 0 ) ? "+"+this : this.toString();
}



PreviousNext

Related