(values: string[])
| 65 | } |
| 66 | |
| 67 | export function uniqueStrings(values: string[]): string[] { |
| 68 | const result: string[] = [] |
| 69 | const seen = new Set<string>() |
| 70 | |
| 71 | for (const value of values) { |
| 72 | const key = value.toLowerCase() |
| 73 | if (seen.has(key)) { |
| 74 | continue |
| 75 | } |
| 76 | |
| 77 | seen.add(key) |
| 78 | result.push(value) |
| 79 | } |
| 80 | |
| 81 | return result |
| 82 | } |
no outgoing calls
no test coverage detected