JSTQL-JS-Transform/output_testing/498constant-computed.js

7 lines
No EOL
142 B
JavaScript

function Component(props) {
const index = "foo";
const x = {};
x[index] = x[index] + x["bar"];
props.foo |> x[index](%);
return x;
}