Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove array from array of object

 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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #array #array #object
ADD COMMENT
Topic
Name
4+1 =