extractOptions function infrastructure ✓ 100.0%
Last updated: 2026-02-24T19:46:21.768Z
Metrics
LOC: 11
Complexity: 3
Params: 2
Coverage: 100.0% (5/5 lines, 8x executed)
Signature
extractOptions(
hiddenSelect: HTMLSelectElement | null,
): : Array<{ value: string; text: string }> | undefined
Source Code
function extractOptions(
hiddenSelect: HTMLSelectElement | null,
): Array<{ value: string; text: string }> | undefined {
if (!hiddenSelect) return undefined;
const opts = Array.from(hiddenSelect.options)
.filter((o) => o.value !== "")
.map((o) => ({ value: o.value, text: o.text.trim() }));
return opts.length > 0 ? opts : undefined;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| buildField | calls |