MCPcopy
hub / github.com/msgbyte/tianji / formatNumber

Function formatNumber

src/client/utils/common.ts:19–27  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

17}
18
19export function formatNumber(n: number): string {
20 if (typeof n !== 'number') {
21 n = Number(n);
22 }
23
24 return millify(n, {
25 lowercase: true,
26 });
27}
28
29/**
30 * @deprecated

Callers 12

UsageCard.tsxFile · 0.90
CommonList.tsxFile · 0.90
MetricsBlock.tsxFile · 0.90
cellFunction · 0.90
SurveyResultCountFunction · 0.90
PageComponentFunction · 0.90
PageComponentFunction · 0.90
MetricsListFunction · 0.90
WebsiteOverviewComponentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected