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

Method clone

frontend/public/swagger-ui-bundle.js:5052–5067  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5050 }
5051 primitive() {}
5052 clone() {
5053 const s = new this.constructor()
5054 return (
5055 (s.element = this.element),
5056 this.meta.length && (s._meta = this.meta.clone()),
5057 this.attributes.length && (s._attributes = this.attributes.clone()),
5058 this.content
5059 ? this.content.clone
5060 ? (s.content = this.content.clone())
5061 : Array.isArray(this.content)
5062 ? (s.content = this.content.map((s) => s.clone()))
5063 : (s.content = this.content)
5064 : (s.content = this.content),
5065 s
5066 )
5067 }
5068 toValue() {
5069 return this.content instanceof Element
5070 ? this.content.toValue()

Callers

nothing calls this directly

Calls 3

cloneMethod · 0.45
isArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected