getFieldLabel function ✓ 100.0%

Last updated: 2026-03-04T23:21:38.399Z

Metrics

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

Signature

getFieldLabel(field: FormField): : string

Source Code

function getFieldLabel(field: FormField): string {
  return (
    field.label ?? field.name ?? field.id ?? field.fieldType ?? field.selector
  );
}

No outgoing dependencies.

Impact (Incoming)

graph LR getFieldLabel["getFieldLabel"] addDetecting["addDetecting"] updateDetected["updateDetected"] addFilling["addFilling"] updateFilled["updateFilled"] updateError["updateError"] addDetecting -->|calls| getFieldLabel updateDetected -->|calls| getFieldLabel addFilling -->|calls| getFieldLabel updateFilled -->|calls| getFieldLabel updateError -->|calls| getFieldLabel style getFieldLabel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getFieldLabel "77b70ce74ccfd025.html" click addDetecting "c905905d51da03c4.html" click updateDetected "9b49f309b5fbb5e7.html" click addFilling "524532e8edf7313a.html" click updateFilled "4e5e87e82f7512e3.html" click updateError "a1d61ed37f97aef4.html"
SourceType
addDetecting calls
updateDetected calls
addFilling calls
updateFilled calls
updateError calls