UNPKG

@churchapps/helpers

Version:

Library of helper functions not specific to any one ChurchApps project or framework.

11 lines (10 loc) 267 B
export class CurrencyHelper { static formatCurrency(amount: number) { const formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD", minimumFractionDigits: 2 }); return formatter.format(amount); } }