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

Function getSafeValue

code/communication/public/app.js:4693–4705  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4691}
4692
4693function getSafeValue(value) {
4694 switch (typeof value) {
4695 case 'boolean':
4696 case 'number':
4697 case 'object':
4698 case 'string':
4699 case 'undefined':
4700 return value;
4701 default:
4702 // function, symbol are assigned as empty strings
4703 return '';
4704 }
4705}
4706
4707var eventTypes$1 = {
4708 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected