(n, min, max)
| 20 | let _minimized = false; |
| 21 | |
| 22 | function clamp(n, min, max) { |
| 23 | return Math.max(min, Math.min(max, n)); |
| 24 | } |
| 25 | |
| 26 | function formatBytes(bytes) { |
| 27 | if (!Number.isFinite(bytes) || bytes < 0) return '0 B'; |
no outgoing calls
no test coverage detected