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)
| Target | Type |
|---|---|
| findLabelWithStrategy | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handleRuleButtonClick | uses |
| isFillableField | uses |
| initFieldIcon | uses |
| SearchableSelectPreactProps | calls |