MCPcopy Create free account
hub / github.com/json-editor/json-editor / canOptimize

Function canOptimize

docs/scripts/ajv-validator.js:1373–1376  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1371 return c;
1372 }
1373 function canOptimize(e) {
1374 return (e instanceof code_1._Code &&
1375 e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined));
1376 }
1377 }
1378 function subtractNames(names, from) {
1379 for (const n in from)

Callers 2

optimizeExprFunction · 0.85
validateUniqueItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected