lib/libs.js
function (n, symbol) {
                    if(n === undefined || n === null || !libs.object.isNumeric(n)) return n;
                    n = libs.object.getNumeric(n).toFixed(2);
                    symbol = typeof symbol === 'string' ? symbol : '$';

                    return n.replace(/^(-)?(\d+)\.(\d+)$/, function ($0, $1, $2, $3) {
                        $1 = $2 === '0' && $3 === '00' ? null : $1;
                        return ($1 || '') + symbol + libs.number.withPlaceholders($2) + '.' + $3;
                    });
                }
function (n, symbol) {
                    if(n === undefined || n === null || !libs.object.isNumeric(n)) return n;
                    n = libs.object.getNumeric(n).toFixed(2);
                    symbol = typeof symbol === 'string' ? symbol : '$';

                    return n.replace(/^(-)?(\d+)\.(\d+)$/, function ($0, $1, $2, $3) {
                        $1 = $2 === '0' && $3 === '00' ? null : $1;
                        return ($1 || '') + symbol + libs.number.withPlaceholders($2) + '.' + $3;
                    });
                }
Formats a number in money notation.
@param {Number} n The number to format.
@param {String=} [symbol='$'] The currency type symbol.
@return {String} The number in USD format.