MCPcopy Create free account
hub / github.com/arktypeio/arktype / for

Method for

ark/schema/shared/compile.ts:160–166  ·  view source on GitHub ↗

Current index is "i"

(
		until: string,
		body: (self: this) => this,
		initialValue: CoercibleValue = 0
	)

Source from the content-addressed store, hash-verified

158
159 /** Current index is "i" */
160 for(
161 until: string,
162 body: (self: this) => this,
163 initialValue: CoercibleValue = 0
164 ): this {
165 return this.loop(`for (let i = ${initialValue}; ${until}; i++)`, body)
166 }
167
168 /** Current key is "k" */
169 forIn(object: string, body: (self: this) => this): this {

Callers 11

validate.tsFile · 0.80
standalone.test.tsFile · 0.80
unplugin.tsFile · 0.80
runtime.tsFile · 0.80
harness.tsFile · 0.80
kinds.tsFile · 0.80
jsElementsMethod · 0.80
compileMethod · 0.80
jsForOwnKeysMethod · 0.80
registry.test.tsFile · 0.80

Calls 1

loopMethod · 0.95

Tested by

no test coverage detected