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

Function zeroPad

src/playground.ts:869–872  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

867 });
868
869 function zeroPad(n: number): string {
870 let pad = "000000";
871 return (pad + n).slice(-pad.length);
872 }
873
874 function addCommas(s: string): string {
875 return s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

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…