MCPcopy Create free account
hub / github.com/Lobos/react-ui / transformValue

Function transformValue

src/RadioGroup.js:11–21  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

9import Radio from './Radio';
10
11function transformValue(value) {
12 if (value === null || value === undefined) {
13 return value;
14 }
15
16 if (typeof value !== 'string') {
17 value = value.toString();
18 }
19
20 return value;
21}
22
23class RadioGroup extends Component {
24 constructor (props) {

Callers 2

constructorMethod · 0.85
setValueMethod · 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…