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

Function emptyElement

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

Source from the content-addressed store, hash-verified

45657 }
45658 }
45659 const ld = LinkDescription,
45660 emptyElement = (s) => {
45661 const o = s.meta.length > 0 ? cloneDeep(s.meta) : void 0,
45662 i = s.attributes.length > 0 ? cloneDeep(s.attributes) : void 0
45663 return new s.constructor(void 0, o, i)
45664 },
45665 cloneUnlessOtherwiseSpecified = (s, o) =>
45666 o.clone && o.isMergeableElement(s) ? deepmerge(emptyElement(s), s, o) : s,

Callers 2

Calls 1

cloneDeepFunction · 0.85

Tested by

no test coverage detected