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

Function getSafeValue

code/higher-order-components/public/app.js:4652–4664  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4650}
4651
4652function getSafeValue(value) {
4653 switch (typeof value) {
4654 case 'boolean':
4655 case 'number':
4656 case 'object':
4657 case 'string':
4658 case 'undefined':
4659 return value;
4660 default:
4661 // function, symbol are assigned as empty strings
4662 return '';
4663 }
4664}
4665
4666var eventTypes$1 = {
4667 change: {

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected