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

Function getSafeValue

code/composition/public/app.js:4796–4808  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4794}
4795
4796function getSafeValue(value) {
4797 switch (typeof value) {
4798 case 'boolean':
4799 case 'number':
4800 case 'object':
4801 case 'string':
4802 case 'undefined':
4803 return value;
4804 default:
4805 // function, symbol are assigned as empty strings
4806 return '';
4807 }
4808}
4809
4810var eventTypes$1 = {
4811 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected