JS POP Object de ID
const popFromData = (memberID: number): void => {
setData(
data
.filter(function(element: DataType) {
return element.id !== memberID;
}))
}
Puzzled Puffin