pickBestSelector function exported
Last updated: 2026-03-05T12:26:14.062Z
Metrics
LOC: 7
Complexity: 3
Params: 3
Signature
pickBestSelector(
selectors: SmartSelector[] | undefined,
fallbackCSS: string,
): : string
Summary
Picks the best selector from a SmartSelector array. Returns the first one (highest priority) or the raw CSS fallback.
Source Code
export function pickBestSelector(
selectors: SmartSelector[] | undefined,
fallbackCSS: string,
): string {
if (!selectors || selectors.length === 0) return fallbackCSS;
return selectors[0].value;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| createElement | uses |
| escapeString | uses |
| escapeString | uses |
| escapeString | uses |