MCPcopy Create free account
hub / github.com/unconed/TermKit / format

Function format

HTML/outputview/outputfactory.js:465–471  ·  view source on GitHub ↗
(x, l)

Source from the content-addressed store, hash-verified

463
464 // Format a number to hex and pad with zeroes.
465 function format(x, l) {
466 x = x.toString(16);
467 while (x.length < l) {
468 x = 0 + x;
469 }
470 return x;
471 }
472
473 // Insert data in runs of bytesLength.
474 var data = this.properties.contents;

Callers 1

outputfactory.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected