JSTQL-JS-Transform/output_testing/1182array-map-captures-receiver-noAlias.js

18 lines
No EOL
339 B
JavaScript

function Component(props) {
// This item is part of the receiver, should be memoized
const item = {
a: props.a
};
const items = [item];
const mapped = (item => item) |> items.map(%);
return mapped;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
a: {
id: 42
}
}],
isComponent: false
};