Javascript String Money()

Description

Javascript String Money()


String.prototype.Money = function(){
    var re=/(?=(?!\b)(\d{3})+$)/g;      
    return this.replace(re,','); 
}



PreviousNext

Related