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

Function getSafeValue

code/controlled-uncontrolled/public/app.js:3982–3994  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3980}
3981
3982function getSafeValue(value) {
3983 switch (typeof value) {
3984 case 'boolean':
3985 case 'number':
3986 case 'object':
3987 case 'string':
3988 case 'undefined':
3989 return value;
3990 default:
3991 // function, symbol are assigned as empty strings
3992 return '';
3993 }
3994}
3995
3996var eventTypes$1 = {
3997 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected