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

Method checkElement

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

Source from the content-addressed store, hash-verified

5092 let i = new _()
5093 const append = (s, o) => (s.push(o), s),
5094 checkElement = (s, i) => {
5095 i.element === o && s.push(i)
5096 const a = i.findRecursive(o)
5097 return (
5098 a && a.reduce(append, s),
5099 i.content instanceof u &&
5100 (i.content.key && checkElement(s, i.content.key),
5101 i.content.value && checkElement(s, i.content.value)),
5102 s
5103 )
5104 }
5105 return (
5106 this.content &&
5107 (this.content.element && checkElement(i, this.content),

Callers

nothing calls this directly

Calls 3

findRecursiveMethod · 0.80
pushMethod · 0.45
reduceMethod · 0.45

Tested by

no test coverage detected