MCPcopy Index your code
hub / github.com/JedWatson/react-select / getOptionLabel

Function getOptionLabel

packages/react-select/src/builtins.ts:7–8  ·  view source on GitHub ↗
(option: Option)

Source from the content-addressed store, hash-verified

5): string => group.label as string;
6
7export const getOptionLabel = <Option>(option: Option): string =>
8 (option as { label?: unknown }).label as string;
9
10export const getOptionValue = <Option>(option: Option): string =>
11 (option as { value?: unknown }).value as string;

Callers 2

toCategorizedOptionFunction · 0.90
SelectClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…