Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.js
File · 0.85
Calls
2
join
Method · 0.80
max
Method · 0.80
Tested by
no test coverage detected