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

Function mergeIntoCollectionWith

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

Source from the content-addressed store, hash-verified

2447 }
2448 }
2449 function mergeIntoCollectionWith(s, o, i) {
2450 return 0 ===
2451 (i = i.filter(function (s) {
2452 return 0 !== s.size
2453 })).length
2454 ? s
2455 : 0 !== s.size || s.__ownerID || 1 !== i.length
2456 ? s.withMutations(function (s) {
2457 for (
2458 var a = o
2459 ? function (i, a) {
2460 s.update(a, j, function (s) {
2461 return s === j ? i : o(s, i, a)
2462 })
2463 }
2464 : function (o, i) {
2465 s.set(i, o)
2466 },
2467 u = 0;
2468 u < i.length;
2469 u++
2470 )
2471 i[u].forEach(a)
2472 })
2473 : s.constructor(i[0])
2474 }
2475 function updateInDeepMap(s, o, i, a) {
2476 var u = s === j,
2477 _ = o.next()

Callers 2

mergeIntoMapWithFunction · 0.85
mergeIntoListWithFunction · 0.85

Calls 5

oFunction · 0.70
filterMethod · 0.45
setMethod · 0.45
forEachMethod · 0.45
constructorMethod · 0.45

Tested by

no test coverage detected