(v: number)
| 40 | } |
| 41 | |
| 42 | const clamp01 = (v: number): number => Math.min(1, Math.max(0, v)); |
| 43 | |
| 44 | const parsePercent = (value: string): number | null => { |
| 45 | const m = value.trim().match(/^(\d+(?:\.\d+)?)%$/); |
no outgoing calls
no test coverage detected