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

Function getSafeValue

code/third-party/public/app.js:3891–3903  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3889}
3890
3891function getSafeValue(value) {
3892 switch (typeof value) {
3893 case 'boolean':
3894 case 'number':
3895 case 'object':
3896 case 'string':
3897 case 'undefined':
3898 return value;
3899 default:
3900 // function, symbol are assigned as empty strings
3901 return '';
3902 }
3903}
3904
3905var eventTypes$1 = {
3906 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected