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

Method setValue

docs/scripts/ajv-validator.js:1466–1469  ·  view source on GitHub ↗
(value, { property, itemIndex })

Source from the content-addressed store, hash-verified

1464 this.prefix = prefix;
1465 }
1466 setValue(value, { property, itemIndex }) {
1467 this.value = value;
1468 this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`;
1469 }
1470 }
1471 exports.ValueScopeName = ValueScopeName;
1472 const line = (0, code_1._) `\n`;

Callers 1

valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected