MCPcopy
hub / github.com/tensorflow/playground / addCommas

Function addCommas

src/playground.ts:874–876  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

872 }
873
874 function addCommas(s: string): string {
875 return s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
876 }
877
878 function humanReadable(n: number): string {
879 return n.toFixed(3);

Callers 1

updateUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…