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

Function getSafeValue

code/styling/public/app.js:4658–4670  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4656}
4657
4658function getSafeValue(value) {
4659 switch (typeof value) {
4660 case 'boolean':
4661 case 'number':
4662 case 'object':
4663 case 'string':
4664 case 'undefined':
4665 return value;
4666 default:
4667 // function, symbol are assigned as empty strings
4668 return '';
4669 }
4670}
4671
4672var eventTypes$1 = {
4673 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected