Javascript String trimCurrency()

Description

Javascript String trimCurrency()

String.prototype.trimCurrency = function () {
    return Number(this.replace('$', '').replace(',', ''));
}



PreviousNext

Related