(s)
| 70 | |
| 71 | const median = (arr) => { const v = [...arr].sort((a, b) => a - b); const n = v.length; return n === 0 ? 0 : n % 2 ? v[(n - 1) / 2] : (v[n / 2 - 1] + v[n / 2]) / 2; }; |
| 72 | const fmtTime = (s) => s >= 60 ? `${Math.floor(s / 60)}m ${Math.round(s % 60)}s` : `${Math.round(s)}s`; |
| 73 | const fmtTok = (t) => t >= 1e6 ? `${(t / 1e6).toFixed(1)}M` : `${Math.round(t / 1000)}k`; |
| 74 | const pct = (w, wo) => wo > 0 ? Math.round((1 - w / wo) * 100) : 0; |
| 75 |
no outgoing calls
no test coverage detected