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

Function getOptionValue

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

Source from the content-addressed store, hash-verified

8 (option as { label?: unknown }).label as string;
9
10export const getOptionValue = <Option>(option: Option): string =>
11 (option as { value?: unknown }).value as string;
12
13export const isOptionDisabled = <Option>(option: Option): boolean =>
14 !!(option as { isDisabled?: unknown }).isDisabled;

Callers 3

toCategorizedOptionFunction · 0.90
isOptionSelectedFunction · 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…