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

Function deepmerge

frontend/public/swagger-ui-bundle.js:5685–5695  ·  view source on GitHub ↗
(s, i, a)

Source from the content-addressed store, hash-verified

5683 )
5684 }
5685 function deepmerge(s, i, a) {
5686 ;(((a = a || {}).arrayMerge = a.arrayMerge || defaultArrayMerge),
5687 (a.isMergeableObject = a.isMergeableObject || o),
5688 (a.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified))
5689 var u = Array.isArray(i)
5690 return u === Array.isArray(s)
5691 ? u
5692 ? a.arrayMerge(s, i, a)
5693 : mergeObject(s, i, a)
5694 : cloneUnlessOtherwiseSpecified(i, a)
5695 }
5696 deepmerge.all = function deepmergeAll(s, o) {
5697 if (!Array.isArray(s)) throw new Error('first argument should be an array')
5698 return s.reduce(function (s, i) {

Callers 2

Calls 4

mergeObjectFunction · 0.85
cloneDeepFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected