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

Function subtractNames

docs/scripts/ajv-validator.js:1378–1381  ·  view source on GitHub ↗
(names, from)

Source from the content-addressed store, hash-verified

1376 }
1377 }
1378 function subtractNames(names, from) {
1379 for (const n in from)
1380 names[n] = (names[n] || 0) - (from[n] || 0);
1381 }
1382 function not(x) {
1383 return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`;
1384 }

Callers 1

optimizeNamesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected