JSFiddle - React, Tailwind, and code Playground

by David Santiago

JavaScript

const cleanInfo = (items) => items.map(item => {return {test:item.test};});


console.log(cleanInfo([{test:123},{test:234}]));