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

Function refract

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

Source from the content-addressed store, hash-verified

28857 V = i(10866),
28858 z = i(55973)
28859 function refract(s) {
28860 if (s instanceof a) return s
28861 if ('string' == typeof s) return new _(s)
28862 if ('number' == typeof s) return new w(s)
28863 if ('boolean' == typeof s) return new x(s)
28864 if (null === s) return new u()
28865 if (Array.isArray(s)) return new C(s.map(refract))
28866 if ('object' == typeof s) {
28867 return new L(s)
28868 }
28869 return s
28870 }
28871 ;((a.prototype.ObjectElement = L),
28872 (a.prototype.RefElement = $),
28873 (a.prototype.MemberElement = j),

Callers 1

createRefractorFunction · 0.85

Calls 5

cloneDeepFunction · 0.85
dispatchPluginsSyncFunction · 0.85
CuFunction · 0.50
isArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected