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

Function cloneUnlessOtherwiseSpecified

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

Source from the content-addressed store, hash-verified

5624 }
5625 var i = 'function' == typeof Symbol && Symbol.for ? Symbol.for('react.element') : 60103
5626 function cloneUnlessOtherwiseSpecified(s, o) {
5627 return !1 !== o.clone && o.isMergeableObject(s)
5628 ? deepmerge(
5629 (function emptyTarget(s) {
5630 return Array.isArray(s) ? [] : {}
5631 })(s),
5632 s,
5633 o
5634 )
5635 : s
5636 }
5637 function defaultArrayMerge(s, o, i) {
5638 return s.concat(o).map(function (s) {
5639 return cloneUnlessOtherwiseSpecified(s, i)

Callers 4

defaultArrayMergeFunction · 0.85
mergeObjectFunction · 0.85
deepmergeFunction · 0.85

Calls 3

deepmergeFunction · 0.85
emptyElementFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected