I am working with an array that looks like this.
let items=[{id:"1",name:"apple"},{id:"2",name:"banana"},
{id:"3",name:"orange"}];
What I am aiming for is
let selectedItems={id: "1,2,3"};
Can you assist me in achieving the desired format for the ids mentioned above?