imports/vx/both/code/util.js
/**
     * Strip a currency value of dollar sign and commas.  Automatically convert N/A to zero.
     *
     * @param {string} currency String containing money value with dollar signs and commas or "N/A".
     * @return {number} Decimal number.
     */
Strip a currency value of dollar sign and commas.  Automatically convert N/A to zero.
@param {string} currency String containing money value with dollar signs and commas or "N/A".
@return {number} Decimal number.
Strip a currency value of dollar sign and commas . Automatically convert N / A to zero . @param { string } currency String containing money value with dollar signs and commas or " N / A " . @return { number } Decimal number .
stripMoney(currency) {
        if (!currency) {
            return
        }
        if (currency === "N/A") {
            return 0.00
        }
        return Number(currency.replace(/[^0-9-\.]+/g, ""))
    }
stripMoney ( currency ) { if ( ! currency ) { return } if ( currency === "N/A" ) { return 0.00 } return Number ( currency . replace ( / [^0-9-\.]+ / g , "" ) ) }
Strip a currency value of dollar sign and commas.
Strip a currency value of dollar sign and commas .