MCPcopy Index your code
hub / github.com/dataease/SQLBot / valueEncoder

Function valueEncoder

frontend/public/swagger-ui-bundle.js:41528–41535  ·  view source on GitHub ↗
(s, o = !1)

Source from the content-addressed store, hash-verified

41526 return
41527 })(s)
41528 }
41529 function valueEncoder(s, o = !1) {
41530 return (
41531 Array.isArray(s) || (null !== s && 'object' == typeof s)
41532 ? (s = JSON.stringify(s))
41533 : ('number' != typeof s && 'boolean' != typeof s) || (s = String(s)),
41534 o && 'string' == typeof s && s.length > 0 ? encodeCharacters(s, o) : null != s ? s : ''
41535 )
41536 }
41537 const ru = { form: ',', spaceDelimited: '%20', pipeDelimited: '|' },
41538 nu = { csv: ',', ssv: '%20', tsv: '%09', pipes: '|' }

Callers 2

stylizeFunction · 0.85
encodeFnFunction · 0.85

Calls 2

encodeCharactersFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected