MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / plural

Function plural

out/cli.cjs:9362–9365  ·  view source on GitHub ↗
(ms, msAbs, n2, name)

Source from the content-addressed store, hash-verified

9360 return ms + " ms";
9361 }
9362 function plural(ms, msAbs, n2, name) {
9363 var isPlural = msAbs >= n2 * 1.5;
9364 return Math.round(ms / n2) + " " + name + (isPlural ? "s" : "");
9365 }
9366 }
9367});
9368

Callers 1

fmtLongFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…