MCPcopy Create free account
hub / github.com/jsfiddle/togetherjs / lpad

Function lpad

togetherjs/console.js:236–243  ·  view source on GitHub ↗
(s, len, pad)

Source from the content-addressed store, hash-verified

234 }
235
236 function lpad(s, len, pad) {
237 s = s + "";
238 pad = pad || " ";
239 while (s.length < len) {
240 s = pad + s;
241 }
242 return s;
243 }
244
245 function lpadLines(s, len, pad) {
246 var i;

Callers 1

console.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected