9 lines
No EOL
189 B
JavaScript
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;
|
|
} |