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

Method forIn

ark/schema/shared/compile.ts:169–171  ·  view source on GitHub ↗

Current key is "k"

(object: string, body: (self: this) => this)

Source from the content-addressed store, hash-verified

167
168 /** Current key is "k" */
169 forIn(object: string, body: (self: this) => this): this {
170 return this.loop(`for (const k in ${object})`, body)
171 }
172
173 loopDepth = 0
174 loop(prefix: string, body: (self: this) => this): this {

Callers 1

compileMethod · 0.80

Calls 1

loopMethod · 0.95

Tested by

no test coverage detected