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

Function getSafeValue

code/dependency-injection/public/app.js:4751–4763  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4749}
4750
4751function getSafeValue(value) {
4752 switch (typeof value) {
4753 case 'boolean':
4754 case 'number':
4755 case 'object':
4756 case 'string':
4757 case 'undefined':
4758 return value;
4759 default:
4760 // function, symbol are assigned as empty strings
4761 return '';
4762 }
4763}
4764
4765var eventTypes$1 = {
4766 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected