MCPcopy Create free account
hub / github.com/11ty/dev-server / pad

Method pad

client/reload-client.js:2–5  ·  view source on GitHub ↗
(num, digits = 2)

Source from the content-addressed store, hash-verified

1class Util {
2 static pad(num, digits = 2) {
3 let zeroes = new Array(digits + 1).join(0);
4 return `${zeroes}${num}`.slice(-1 * digits);
5 }
6
7 static log(message) {
8 Util.output("log", message);

Callers 1

outputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected