MCPcopy Index your code
hub / github.com/ampproject/amphtml / pad

Function pad

build-system/compile/debug-compilation-lifecycle.js:11–14  ·  view source on GitHub ↗
(value, length)

Source from the content-addressed store, hash-verified

9const logFile = path.resolve(process.cwd(), 'dist', 'debug-compilation.log');
10
11const pad = (value, length) =>
12 (value.length > length ? value.slice(value.length - length) : value).padEnd(
13 length
14 );
15
16/**
17 * Output debugging information when developing changes in this functionality.

Callers 1

debugFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected