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

Function setText

examples/million-points/main.ts:21–25  ·  view source on GitHub ↗
(id: string, text: string)

Source from the content-addressed store, hash-verified

19};
20
21const setText = (id: string, text: string): void => {
22 const el = document.getElementById(id);
23 if (!el) return;
24 el.textContent = text;
25};
26
27const formatInt = (() => {
28 const nf = new Intl.NumberFormat(undefined);

Callers 2

mainFunction · 0.70
updateStatsDomFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected