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

Function jsArrayPathKey

ark/schema/structure/structure.ts:1709–1710  ·  view source on GitHub ↗
(js: NodeCompiler)

Source from the content-addressed store, hash-verified

1707
1708// `k` as its path names it, where a loop over data's keys has declared isArray
1709const jsArrayPathKey = (js: NodeCompiler): string =>
1710 `(isArray ? ${js.ref(arrayPathKeyOf)}(k) : k)`
1711
1712const defaultableMorphsCache = new WeakCache<Morph>()
1713

Callers 2

tfKeyMethod · 0.85
jsEntryMethod · 0.85

Calls 1

refMethod · 0.45

Tested by

no test coverage detected