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

6 lines
175 B
JavaScript
Raw Normal View History

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;
}