MCPcopy Create free account
hub / github.com/doesdev/rollup-plugin-analyzer / shakenPct

Function shakenPct

module.js:16–19  ·  view source on GitHub ↗
(n = 0, o = 0)

Source from the content-addressed store, hash-verified

14}
15
16const shakenPct = (n = 0, o = 0) => {
17 const pct = Math.max((100 - ((n / o) * 100)).toFixed(2), 0)
18 return Number.isNaN(pct) ? 0 : pct
19}
20
21const match = (str, check) => str.indexOf(check) !== -1
22

Callers 1

analyzerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…