( values: Array<string | null | undefined>, )
| 175 | } |
| 176 | |
| 177 | function uniqueStrings( |
| 178 | values: Array<string | null | undefined>, |
| 179 | ): Array<string> { |
| 180 | const result: Array<string> = [] |
| 181 | const seen = new Set<string>() |
| 182 | |
| 183 | for (const value of values) { |
| 184 | if (!value || seen.has(value)) continue |
| 185 | seen.add(value) |
| 186 | result.push(value) |
| 187 | } |
| 188 | |
| 189 | return result |
| 190 | } |
| 191 | |
| 192 | function splitDataIds(value: string | null | undefined): Array<string> { |
| 193 | if (!value) return [] |
no test coverage detected