Files
t3code/packages/client-runtime/src/diffCount.ts
T

7 lines
247 B
TypeScript

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