JSTQL-JS-Transform/output_testing/537array-at-effect.js

9 lines
252 B
JavaScript
Raw Normal View History

// arrayInstance.at should have the following effects:
// - read on arg0
// - read on receiver
// - mutate on lvalue
function ArrayAtTest(props) {
const arr = [props.x |> foo(%)];
const result = props.y |> bar(%) |> arr.at(%);
return result;
}