const receivedData=res.body;
const indexOfObject = receivedData.findIndex((object: { emailId: string; id: any; }) => {
if(object.emailId=="") return object.id
});
console.log(indexOfObject);
receivedData.splice(indexOfObject, 1000);
filteredData = receivedData;
console.log("filteredData===", filteredData);