@churchapps/helpers
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
15 lines • 469 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrencyHelper = void 0;
class CurrencyHelper {
static formatCurrency(amount) {
const formatter = new Intl.NumberFormat("en-US", {
style: "currency",
currency: "USD",
minimumFractionDigits: 2
});
return formatter.format(amount);
}
}
exports.CurrencyHelper = CurrencyHelper;
//# sourceMappingURL=CurrencyHelper.js.map