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

Method jsTf

ark/schema/structure/sequence.ts:438–443  ·  view source on GitHub ↗
(js: NodeCompiler)

Source from the content-addressed store, hash-verified

436 }
437
438 private jsTf(js: NodeCompiler): void {
439 js.initTf(this.children).let("out", "data")
440 // an array written in place is never copied
441 this.jsElemTfs(js, js.inPlace ? undefined : `${js.ref(copyOf)}(data)`)
442 js.retIfFailed().return("out")
443 }
444
445 /** writes the transforms of data's elements, into `copy` before the first change or, without one, in place */
446 jsElemTfs(js: NodeCompiler, copy: string | undefined): NodeCompiler {

Callers 1

compileMethod · 0.95

Calls 4

jsElemTfsMethod · 0.95
letMethod · 0.80
returnMethod · 0.80
refMethod · 0.45

Tested by

no test coverage detected