JSFiddle - React, Tailwind, and code Playground
JavaScript
const cleanInfo = (items) => items.map(item => {return {test:item.test};});
console.log(cleanInfo([{test:123},{test:234}]));
const cleanInfo = (items) => items.map(item => {return {test:item.test};});
console.log(cleanInfo([{test:123},{test:234}]));