JSTQL-JS-Transform/output_testing/601array-map-mutable-array-mutating-lambda.js

8 lines
No EOL
145 B
JavaScript

function Component(props) {
const x = [];
const y = (item => {
item.updated = true;
return item;
}) |> x.map(%);
return [x, y];
}