Javascript String uncomma()

Description

Javascript String uncomma()

// Remove commas//from  www .  j  av a2  s  . c  o m
String.prototype.uncomma = function() {
 return parseInt(this.replace(/,/g, ''));
};



PreviousNext

Related