Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/array-map-mutable-array-mutating-lambda-noAlias.js
2026-08-27 21:09:14 +00:00

15 lines
234 B
JavaScript

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