normalizeAndDedupe function ✓ 100.0%

Last updated: 2026-02-24T21:07:57.585Z

Metrics

LOC: 13 Complexity: 4 Params: 1 Coverage: 100.0% (8/8 lines, 34896x executed)

Signature

normalizeAndDedupe(values: string[]): : string[]

Source Code

function normalizeAndDedupe(values: string[]): string[] {
  const seen = new Set<string>();
  const output: string[] = [];

  for (const value of values) {
    const token = normalizeToken(value);
    if (!token || seen.has(token)) continue;
    seen.add(token);
    output.push(token);
  }

  return output;
}

Dependencies (Outgoing)

graph LR normalizeAndDedupe["normalizeAndDedupe"] normalizeToken["normalizeToken"] normalizeAndDedupe -->|calls| normalizeToken style normalizeAndDedupe fill:#dbeafe,stroke:#2563eb,stroke-width:2px click normalizeAndDedupe "1c7d0c2fccdeffca.html" click normalizeToken "acab84a19ef8c65c.html"
TargetType
normalizeToken calls

Impact (Incoming)

graph LR normalizeAndDedupe["normalizeAndDedupe"] normalizeStructuredSignals["normalizeStructuredSignals"] structuredSignalsFromField["structuredSignalsFromField"] normalizeStructuredSignals -->|calls| normalizeAndDedupe structuredSignalsFromField -->|calls| normalizeAndDedupe style normalizeAndDedupe fill:#dbeafe,stroke:#2563eb,stroke-width:2px click normalizeAndDedupe "1c7d0c2fccdeffca.html" click normalizeStructuredSignals "a249025c87ece06b.html" click structuredSignalsFromField "ab699edf98df2b23.html"