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

Function parseValue

frontend/public/swagger-ui-bundle.js:21392–21404  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

21390 return s
21391 }
21392 function parseValue(s) {
21393 if ('string' == typeof s || 'number' == typeof s) return s
21394 if ('object' != typeof s) return ''
21395 if (Array.isArray(s)) return classNames.apply(null, s)
21396 if (
21397 s.toString !== Object.prototype.toString &&
21398 !s.toString.toString().includes('[native code]')
21399 )
21400 return s.toString()
21401 var o = ''
21402 for (var i in s) a.call(s, i) && s[i] && (o = appendClass(o, i))
21403 return o
21404 }
21405 function appendClass(s, o) {
21406 return o ? (s ? s + ' ' + o : s + o) : s
21407 }

Callers 1

classNamesFunction · 0.85

Calls 4

appendClassFunction · 0.85
isArrayMethod · 0.45
includesMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected