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

7 lines
No EOL
154 B
JavaScript

function foo(props) {
let x = [];
props.bar |> x.push(%);
props.cond ? (x = {}, x = [], props.foo |> x.push(%)) : null;
x |> mut(%);
return x;
}