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

Method shouldRefract

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

Source from the content-addressed store, hash-verified

26263 return s
26264 }
26265 shouldRefract(s) {
26266 return (
26267 !!(
26268 (s._attributes && s.attributes.keys().length) ||
26269 (s._meta && s.meta.keys().length)
26270 ) ||
26271 ('enum' !== s.element && (s.element !== s.primitive() || 'member' === s.element))
26272 )
26273 }
26274 convertKeyToRefract(s, o) {
26275 return this.shouldRefract(o)
26276 ? this.serialise(o)

Callers 1

convertKeyToRefractMethod · 0.95

Calls 2

keysMethod · 0.45
primitiveMethod · 0.45

Tested by

no test coverage detected