JSTQL-JS-Transform/output_testing/1014overlapping-scopes-within-block.js

16 lines
No EOL
241 B
JavaScript

function foo(a, b, c) {
let x = [];
if (a) {
let y = [];
if (b) {
c |> y.push(%);
}
y |> x.push(%);
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: ["TodoAdd"],
isComponent: "TodoAdd"
};