( value: string | undefined, allowed: readonly string[], fallback: string )
| 453 | } |
| 454 | |
| 455 | function pickAllowed( |
| 456 | value: string | undefined, |
| 457 | allowed: readonly string[], |
| 458 | fallback: string |
| 459 | ): string { |
| 460 | return value && allowed.includes(value) ? value : fallback |
| 461 | } |
| 462 | |
| 463 | function clampInteger( |
| 464 | value: number | undefined, |
no outgoing calls
no test coverage detected