(js: NodeCompiler)
| 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 { |