hapus halaman

This commit is contained in:
2025-06-02 12:39:21 +07:00
parent b397e09634
commit e6a883efe7
8 changed files with 1000 additions and 156 deletions
+12
View File
@@ -0,0 +1,12 @@
//https://stackoverflow.com/questions/68549027/currency-formatting-using-intl-numberformat-without-currency-symbol
export function format(data:number){
return new Intl.NumberFormat('id-ID',{
style:'currency',
currency:'IDR',
currencyDisplay: "code",
}).formatToParts(data)
.filter(x => x.type !== "currency")
.filter(x => x.type !== "literal" || x.value.trim().length !== 0)
.map(x => x.value)
.join("")
}