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

Method forRange

docs/scripts/ajv-validator.js:1203–1206  ·  view source on GitHub ↗
(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let)

Source from the content-addressed store, hash-verified

1201 }
1202 // `for` statement for a range of values
1203 forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) {
1204 const name = this._scope.toName(nameOrPrefix);
1205 return this._for(new ForRange(varKind, name, from, to), () => forBody(name));
1206 }
1207 // `for-of` statement (in es5 mode replace with a normal for loop)
1208 forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) {
1209 const name = this._scope.toName(nameOrPrefix);

Callers 3

forOfMethod · 0.95
extendErrorsFunction · 0.80
validateItemsFunction · 0.80

Calls 2

_forMethod · 0.95
toNameMethod · 0.80

Tested by

no test coverage detected