JSTQL-JS-Transform/output_testing/949ssa-renaming-unconditional-ternary.js

11 lines
No EOL
273 B
JavaScript

function foo(props) {
let x = [];
props.bar |> x.push(%);
props.cond ? (x = {}, x = [], props.foo |> x.push(%)) : (x = [], x = [], props.bar |> x.push(%));
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: ["TodoAdd"],
isComponent: "TodoAdd"
};