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

Function updateInDeepMap

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

Source from the content-addressed store, hash-verified

2473 : s.constructor(i[0])
2474 }
2475 function updateInDeepMap(s, o, i, a) {
2476 var u = s === j,
2477 _ = o.next()
2478 if (_.done) {
2479 var w = u ? i : s,
2480 x = a(w)
2481 return x === w ? s : x
2482 }
2483 invariant(u || (s && s.set), 'invalid keyPath')
2484 var C = _.value,
2485 L = u ? j : s.get(C, j),
2486 B = updateInDeepMap(L, o, i, a)
2487 return B === L ? s : B === j ? s.remove(C) : (u ? emptyMap() : s).set(C, B)
2488 }
2489 function popCount(s) {
2490 return (
2491 (s =

Callers 1

Calls 7

invariantFunction · 0.85
emptyMapFunction · 0.85
nextMethod · 0.80
aFunction · 0.70
getMethod · 0.65
removeMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected