MCPcopy Create free account
hub / github.com/immutable-js/immutable-js / pad

Function pad

resources/benchmark.js:158–160  ·  view source on GitHub ↗
(n, s)

Source from the content-addressed store, hash-verified

156 );
157
158 function pad(n, s) {
159 return Array(Math.max(0, 1 + n - s.length)).join(' ') + s;
160 }
161
162 function fmt(b) {
163 return Math.floor(b)

Callers 1

benchmark.jsFile · 0.85

Calls 2

joinMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected