MCPcopy Index your code
hub / github.com/json-editor/json-editor / func

Method func

docs/scripts/ajv-validator.js:1291–1296  ·  view source on GitHub ↗
(name, args = code_1.nil, async, funcBody)

Source from the content-addressed store, hash-verified

1289 }
1290 // `function` heading (or definition if funcBody is passed)
1291 func(name, args = code_1.nil, async, funcBody) {
1292 this._blockNode(new Func(name, args, async));
1293 if (funcBody)
1294 this.code(funcBody).endFunc();
1295 return this;
1296 }
1297 // end function definition
1298 endFunc() {
1299 return this._endBlockNode(Func);

Callers 1

validateFunctionFunction · 0.80

Calls 3

_blockNodeMethod · 0.95
codeMethod · 0.95
endFuncMethod · 0.80

Tested by

no test coverage detected