(values: readonly string[] | null | undefined)
| 1746 | } |
| 1747 | |
| 1748 | function normalizeStringList(values: readonly string[] | null | undefined): string[] { |
| 1749 | if (!Array.isArray(values)) { |
| 1750 | return []; |
| 1751 | } |
| 1752 | const normalized: string[] = []; |
| 1753 | for (const value of values) { |
| 1754 | const text = normalizeText(value); |
| 1755 | if (!text) { |
| 1756 | continue; |
| 1757 | } |
| 1758 | normalized.push(text); |
| 1759 | } |
| 1760 | return normalized; |
| 1761 | } |
| 1762 | |
| 1763 | function isSameStringList(left: readonly string[], right: readonly string[]): boolean { |
| 1764 | if (left.length !== right.length) { |
no test coverage detected