findLabel function exported ✓ 100.0%

Last updated: 2026-02-24T19:46:21.774Z

Metrics

LOC: 3 Complexity: 1 Params: 1 Coverage: 100.0% (1/1 lines, 5x executed)

Signature

findLabel(element: HTMLElement): : string | undefined

Summary

Convenience shorthand — returns just the text, or undefined.

Source Code

export function findLabel(element: HTMLElement): string | undefined {
  return findLabelWithStrategy(element)?.text;
}

Dependencies (Outgoing)

graph LR findLabel["findLabel"] findLabelWithStrategy["findLabelWithStrategy"] findLabel -->|calls| findLabelWithStrategy style findLabel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click findLabel "e101c4a52af07427.html" click findLabelWithStrategy "8f614323e886c07b.html"
TargetType
findLabelWithStrategy calls

Impact (Incoming)

graph LR findLabel["findLabel"] handleRuleButtonClick["handleRuleButtonClick"] isFillableField["isFillableField"] initFieldIcon["initFieldIcon"] SearchableSelectPreactProps["SearchableSelectPreactProps"] handleRuleButtonClick -->|uses| findLabel isFillableField -->|uses| findLabel initFieldIcon -->|uses| findLabel SearchableSelectPreactProps -->|calls| findLabel style findLabel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click findLabel "e101c4a52af07427.html" click handleRuleButtonClick "302ac6e6209ebb8e.html" click isFillableField "a14a36f7857211ba.html" click initFieldIcon "fcc910dd0c6d49b0.html" click SearchableSelectPreactProps "d7a485bb75ce909c.html"