JSFiddle - React, Tailwind, and code Playground
JavaScript
let array = [{ firstName: "John", lastName : "Doe", id:5566, weight: 70 },{ firstName: "Francis", lastName : "Max", id:5567, weight: 85 }];
array = array.map(item=>{
delete item['firstName'];
delete item['lastName'];
return item;
})
console.log(array)