Files
react/compiler/crates/react_hermes_parser/tests/fixtures/array-map-mutable-array-mutating-lambda.js
2024-04-02 16:49:31 -07:00

9 lines
141 B
JavaScript

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