(v: number)
| 9 | } |
| 10 | |
| 11 | const clamp01 = (v: number): number => Math.min(1, Math.max(0, v)); |
| 12 | |
| 13 | const parsePercent = (value: string): number | null => { |
| 14 | const m = value.trim().match(/^(\d+(?:\.\d+)?)%$/); |
no outgoing calls
no test coverage detected