MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / formatPath

Function formatPath

d3-3.2.8/test/assert.js:147–149  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

145}
146
147function formatPath(path) {
148 return path.replace(reNumber, formatNumber);
149}
150
151function formatNumber(s) {
152 return Math.abs((s = +s) - Math.floor(s)) < 1e-6 ? Math.floor(s) : s.toFixed(6);

Callers 1

assert.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected