more optimization/error handling

This commit is contained in:
jake committed 2022-04-22 09:18:53 -04:00
1 parent 831139c132
commit 8a97b706be
12 files changed
+93 -72

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
import { siteLocale } from "../config";
// adds thousands separator
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
export const commafy = Intl.NumberFormat(siteLocale, { useGrouping: true }).format;