MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / number

Function number

telemetry-dashboard/public/theme.js:89–92  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

87}
88
89export function number(n) {
90 if (n === null || n === undefined || Number.isNaN(n)) return '—';
91 return PLAIN.format(n);
92}
93
94export function percent(fraction, digits = 1) {
95 if (fraction === null || fraction === undefined || Number.isNaN(fraction)) return '—';

Callers 5

lineChartFunction · 0.90
pieChartFunction · 0.90
seriesTableFunction · 0.90
breakdownTableFunction · 0.90
panels.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected