MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / setText

Function setText

examples/worker-streaming/main.ts:43–47  ·  view source on GitHub ↗
(id: string, text: string)

Source from the content-addressed store, hash-verified

41};
42
43const setText = (id: string, text: string): void => {
44 const el = document.getElementById(id);
45 if (!el) return;
46 el.textContent = text;
47};
48
49const formatInt = (n: number): string =>
50 new Intl.NumberFormat(undefined).format(Math.max(0, Math.floor(n)));

Callers 1

streamFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected