mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-21 05:06:22 -04:00
more optimization/error handling
This commit is contained in:
12 files changed
+93
-72
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user