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

Function getSafeValue

code/redux/public/app.js:4909–4921  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4907}
4908
4909function getSafeValue(value) {
4910 switch (typeof value) {
4911 case 'boolean':
4912 case 'number':
4913 case 'object':
4914 case 'string':
4915 case 'undefined':
4916 return value;
4917 default:
4918 // function, symbol are assigned as empty strings
4919 return '';
4920 }
4921}
4922
4923var eventTypes$1 = {
4924 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected