Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

diffCount.ts

6 lines247 Bytes

1const DIFF_COUNT_FORMAT = new Intl.NumberFormat();
2​
3/** Formats a diff line count with the viewer's digit grouping, so `83065` reads `83,065`. */
4export function formatDiffCount(count: number): string {
5 return DIFF_COUNT_FORMAT.format(count);
6}