(value: unknown)
| 17153 | } |
| 17154 | |
| 17155 | function normalizeStringArray(value: unknown): string[] { |
| 17156 | return Array.isArray(value) |
| 17157 | ? value.map((entry) => compactWhitespace(entry)).filter(Boolean).slice(0, 12) |
| 17158 | : []; |
| 17159 | } |
| 17160 | |
| 17161 | function truncateText(value, limit) { |
| 17162 | const normalized = String(value ?? '').trim(); |
no test coverage detected