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

Function validate

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

Source from the content-addressed store, hash-verified

38754 )
38755 }
38756 }
38757 function validate(s, o, i) {
38758 try {
38759 if (!Array.isArray(s))
38760 throw new Do('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY')
38761 if (o) applyPatch(_deepClone(o), _deepClone(s), i || !0)
38762 else {
38763 i = i || validator
38764 for (var a = 0; a < s.length; a++) i(s[a], a, o, void 0)
38765 }
38766 } catch (s) {
38767 if (s instanceof Do) return s
38768 throw s
38769 }
38770 }
38771 function _areEquals(s, o) {
38772 if (s === o) return !0

Callers 1

validatorFunction · 0.85

Calls 4

applyPatchFunction · 0.85
_deepCloneFunction · 0.85
iFunction · 0.70
isArrayMethod · 0.45

Tested by

no test coverage detected