how do i structure an array of items to create an array of objects?

Not sure but maybe this

data.detail = items.map((x) => ({iddetail:x}));

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top