findLabel function presentation
Last updated: 2026-03-04T23:21:38.427Z
Metrics
LOC: 6
Complexity: 2
Params: 3
Signature
findLabel(
flat: Array<SelectOption & { groupLabel?: string }>,
value: string,
): : string
Source Code
function findLabel(
flat: Array<SelectOption & { groupLabel?: string }>,
value: string,
): string {
return flat.find((o) => o.value === value)?.label ?? value;
}
No outgoing dependencies.
No incoming dependencies.