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

Method findElements

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

Source from the content-addressed store, hash-verified

915 this.push(s)
916 }
917 findElements(s, o) {
918 const i = o || {},
919 a = !!i.recursive,
920 u = void 0 === i.results ? [] : i.results
921 return (
922 this.forEach((o, i, _) => {
923 ;(a &&
924 void 0 !== o.findElements &&
925 o.findElements(s, { results: u, recursive: a }),
926 s(o, i, _) && u.push(o))
927 }),
928 u
929 )
930 }
931 find(s) {
932 return new _(this.findElements(s, { recursive: !0 }))
933 }

Callers 1

findMethod · 0.95

Calls 3

forEachMethod · 0.95
sFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected