MCPcopy 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.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected