(terms: GoJSONMatchTerm[])
| 1372 | } |
| 1373 | |
| 1374 | function dedupeGoJSONMatchTerms(terms: GoJSONMatchTerm[]): GoJSONMatchTerm[] { |
| 1375 | const seen = new Set<string>(); |
| 1376 | const result: GoJSONMatchTerm[] = []; |
| 1377 | for (const term of terms) { |
| 1378 | const key = goJSONMatchTermKey(term); |
| 1379 | if (seen.has(key)) continue; |
| 1380 | seen.add(key); |
| 1381 | result.push(term); |
| 1382 | } |
| 1383 | return result; |
| 1384 | } |
| 1385 | |
| 1386 | function compareGoJSONPaths(left: string[], right: string[]): number { |
| 1387 | return goJSONMatchPathKey(left).localeCompare(goJSONMatchPathKey(right)); |
no test coverage detected
searching dependent graphs…