JSTQL-JS-Transform/output_testing/485array-at-closure.js

9 lines
203 B
JavaScript
Raw Normal View History

function Component(props) {
const x = props.x |> foo(%);
const fn = function () {
const arr = [...(props |> bar(%))];
return x |> arr.at(%);
};
const fnResult = fn();
return fnResult;
}