JSTQL-JS-Transform/output_testing/1238array-at-mutate-after-capture.js

9 lines
No EOL
189 B
JavaScript

// x's mutable range should extend to `mutate(y)`
function Component(props) {
let x = [42, {}];
const idx = props.b |> foo(%);
let y = idx |> x.at(%);
y |> mutate(%);
return x;
}