mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-21 12:25:31 -04:00
more optimization/error handling
This commit is contained in:
@@ -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