Javascript String parseMoney()

Description

Javascript String parseMoney()

String.prototype.parseMoney = function() {
  var scrubbed = this.replace(/[^0-9\.]/g, "");
  return parseFloat(scrubbed);
};



PreviousNext

Related