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

Method toElement

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

Source from the content-addressed store, hash-verified

549 )
550 }
551 toElement(s) {
552 if (s instanceof this.Element) return s
553 let o
554 for (let i = 0; i < this.elementDetection.length; i += 1) {
555 const a = this.elementDetection[i][0],
556 u = this.elementDetection[i][1]
557 if (a(s)) {
558 o = new u(s)
559 break
560 }
561 }
562 return o
563 }
564 getElementClass(s) {
565 const o = this.elementMap[s]
566 return void 0 === o ? this.Element : o

Callers 1

transformers_fromFunction · 0.80

Calls 1

aFunction · 0.70

Tested by

no test coverage detected