(value: unknown)
| 56 | * Returns the joined string if non-empty, undefined otherwise. |
| 57 | */ |
| 58 | export function joinTagArray(value: unknown): string | undefined { |
| 59 | const arr = Array.isArray(value) ? (value as string[]) : [] |
| 60 | return arr.length > 0 ? arr.join(', ') : undefined |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Normalizes a multi-value sourceConfig field into a trimmed, deduplicated string array. |
no test coverage detected