MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / getKeyOrValue

Function getKeyOrValue

src/modules/Dropdown/Dropdown.js:37–37  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

35const debug = makeDebugger('dropdown')
36
37const getKeyOrValue = (key, value) => (_.isNil(key) ? value : key)
38const getKeyAndValues = (options) =>
39 options ? options.map((option) => _.pick(option, ['key', 'value'])) : options
40

Callers 1

DropdownClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…