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

Method toName

docs/scripts/ajv-validator.js:1442–1444  ·  view source on GitHub ↗
(nameOrPrefix)

Source from the content-addressed store, hash-verified

1440 this._parent = parent;
1441 }
1442 toName(nameOrPrefix) {
1443 return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);
1444 }
1445 name(prefix) {
1446 return new code_1.Name(this._newName(prefix));
1447 }

Callers 5

_defMethod · 0.80
forRangeMethod · 0.80
forOfMethod · 0.80
forInMethod · 0.80
valueMethod · 0.80

Calls 1

nameMethod · 0.95

Tested by

no test coverage detected