MCPcopy
hub / github.com/anomalyco/models.dev / formatNumber

Function formatNumber

packages/web/src/shared.ts:43–45  ·  view source on GitHub ↗
(value?: number)

Source from the content-addressed store, hash-verified

41}
42
43export function formatNumber(value?: number) {
44 return value === undefined ? "-" : value.toLocaleString();
45}
46
47export function knowledgeText(value?: string) {
48 return value ? value.substring(0, 7) : "-";

Callers 6

modelPageMetadataFunction · 0.70
ModelPageFunction · 0.70
OverviewFunction · 0.70
ModelTableFunction · 0.70
ProviderModelsTableFunction · 0.70
TableSectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected