JSTQL-JS-Transform/output_testing/542ssa-renaming-via-destructuring.js

22 lines
No EOL
240 B
JavaScript

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