JSTQL-JS-Transform/output_testing/1191array-map-mutable-array-non-mutating-lambda-mutated-result.js

13 lines
235 B
JavaScript
Raw Normal View History

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