MCPcopy Create free account
hub / github.com/dataease/SQLBot / cloneShallow

Function cloneShallow

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

Source from the content-addressed store, hash-verified

42714 : (o.content = s.content)
42715 return o
42716 },
42717 cloneShallow = (s) => {
42718 if (s instanceof Su.KeyValuePair) return cloneShallowKeyValuePair(s)
42719 if (s instanceof Su.ot)
42720 return ((s) => {
42721 const o = [...s]
42722 return new Su.ot(o)
42723 })(s)
42724 if (s instanceof Su.G6)
42725 return ((s) => {
42726 const o = [...s]
42727 return new Su.G6(o)
42728 })(s)
42729 if (Cu(s)) return cloneShallowElement(s)
42730 throw new zu("Value provided to cloneShallow function couldn't be cloned", { value: s })
42731 }
42732 cloneShallow.safe = (s) => {
42733 try {

Callers 11

cloneDeepFunction · 0.85
visitor_cloneNodeFunction · 0.85
dereferenceApiDOMFunction · 0.85
ReferenceElementMethod · 0.85
LinkElementMethod · 0.85
ExampleElementMethod · 0.85
MemberElementMethod · 0.85
leaveMethod · 0.85
ReferenceElementMethod · 0.85

Calls 3

cloneShallowKeyValuePairFunction · 0.85
cloneShallowElementFunction · 0.85
CuFunction · 0.50

Tested by

no test coverage detected