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

13 lines
No EOL
238 B
JavaScript

function Component(props) {
const x = [];
const y = (item => {
item.updated = true;
return item;
}) |> x.map(%);
return [x, y];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
isComponent: false
};