function Component(props) { const items = []; for (const x of props.items) { x.modified = true; items.push(x); } return items; }