JSTQL-JS-Transform/output_testing/443ssa-renaming-unconditional-ternary-with-mutation.js

7 lines
No EOL
190 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(%));
x |> mut(%);
return x;
}