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

Function inspectNode

frontend/public/swagger-ui-bundle.js:34445–34453  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

34443 for (inspectNode(s, u, _), i = 0, a = _.length; i < a; i += 1) o.duplicates.push(u[_[i]])
34444 o.usedDuplicates = new Array(a)
34445 }
34446 function inspectNode(s, o, i) {
34447 var a, u, _
34448 if (null !== s && 'object' == typeof s)
34449 if (-1 !== (u = o.indexOf(s))) -1 === i.indexOf(u) && i.push(u)
34450 else if ((o.push(s), Array.isArray(s)))
34451 for (u = 0, _ = s.length; u < _; u += 1) inspectNode(s[u], o, i)
34452 else
34453 for (u = 0, _ = (a = Object.keys(s)).length; u < _; u += 1) inspectNode(s[a[u]], o, i)
34454 }
34455 var Qr = function dump$1(s, o) {
34456 var i = new State((o = o || {}))

Callers 1

getDuplicateReferencesFunction · 0.85

Calls 3

pushMethod · 0.45
isArrayMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected