MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getSafeValue

Function getSafeValue

code/one-direction-data-flow/public/app.js:4531–4543  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4529}
4530
4531function getSafeValue(value) {
4532 switch (typeof value) {
4533 case 'boolean':
4534 case 'number':
4535 case 'object':
4536 case 'string':
4537 case 'undefined':
4538 return value;
4539 default:
4540 // function, symbol are assigned as empty strings
4541 return '';
4542 }
4543}
4544
4545var eventTypes$1 = {
4546 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected