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

Function loopN2

docs/scripts/ajv-validator.js:6987–6994  ·  view source on GitHub ↗
(i, j)

Source from the content-addressed store, hash-verified

6985 });
6986 }
6987 function loopN2(i, j) {
6988 const eql = (0, util_1.useFunc)(gen, equal_1.default);
6989 const outer = gen.name("outer");
6990 gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => {
6991 cxt.error();
6992 gen.assign(valid, false).break(outer);
6993 })));
6994 }
6995 },
6996 };
6997 exports.default = def;

Callers

nothing calls this directly

Calls 7

forMethod · 0.80
labelMethod · 0.80
errorMethod · 0.80
breakMethod · 0.80
assignMethod · 0.80
nameMethod · 0.45
ifMethod · 0.45

Tested by

no test coverage detected