Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/immutable-js/immutable-js
/ fmt
Function
fmt
resources/benchmark.js:162–166 ·
view source on GitHub ↗
(b)
Source
from the content-addressed store, hash-verified
160
}
161
162
function
fmt(b) {
163
return
Math.floor(b)
164
.toString()
165
.replace(/\B(?=(\d{3})+(?!\d))/g,
','
);
166
}
167
168
function
pct(p) {
169
return
Math.floor(p * 10000) / 100 +
'%'
;
Callers
1
benchmark.js
File · 0.85
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected