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

Function applyPatch

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

Source from the content-addressed store, hash-verified

38657 )
38658 }
38659 }
38660 function applyPatch(s, o, i, a, u) {
38661 if ((void 0 === a && (a = !0), void 0 === u && (u = !0), i && !Array.isArray(o)))
38662 throw new Do('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY')
38663 a || (s = _deepClone(s))
38664 for (var _ = new Array(o.length), w = 0, x = o.length; w < x; w++)
38665 ((_[w] = applyOperation(s, o[w], i, !0, u, w)), (s = _[w].newDocument))
38666 return ((_.newDocument = s), _)
38667 }
38668 function applyReducer(s, o, i) {
38669 var a = applyOperation(s, o)

Callers 3

validateFunction · 0.85
generateFunction · 0.85

Calls 3

_deepCloneFunction · 0.85
applyOperationFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected