(target: string[], source: readonly string[])
| 7 | } |
| 8 | |
| 9 | export function mergeUniqueKeys(target: string[], source: readonly string[]): void { |
| 10 | if (source.length === 0) { |
| 11 | return |
| 12 | } |
| 13 | const existingKeys = new Set(target) |
| 14 | for (const key of source) { |
| 15 | if (!existingKeys.has(key)) { |
| 16 | existingKeys.add(key) |
| 17 | target.push(key) |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | export function mergeLargeValueKeys(context: ExactAccessKeyContext, keys: readonly string[]): void { |
| 23 | if (keys.length === 0) { |
no test coverage detected