JSTQL-JS-Transform/output_testing/527destructuring-property-inference.js

9 lines
No EOL
138 B
JavaScript

function Component(props) {
const x = [];
props.value |> x.push(%);
const {
length: y
} = x;
y |> foo(%);
return [x, y];
}