(xs)
| 7 | |
| 8 | const med = (xs) => { const a = xs.filter(x => x != null).sort((p, q) => p - q); if (!a.length) return null; const m = Math.floor(a.length / 2); return a.length % 2 ? a[m] : (a[m - 1] + a[m]) / 2; }; |
| 9 | const rng = (xs) => { const a = xs.filter(x => x != null); return a.length ? `${Math.min(...a)}–${Math.max(...a)}` : '—'; }; |
| 10 | const d2 = (x) => x == null ? '—' : (+x).toFixed(2); |
| 11 | const d3 = (x) => x == null ? '—' : (+x).toFixed(3); |
| 12 | const d4 = (x) => x == null ? '—' : (+x).toFixed(4); |
no outgoing calls
no test coverage detected