Answers for "hoe to delete a value from an array in angular typescript"

0

delete from array in angular

removeTask(data:any){
    const index: number = this.list.indexOf(data);
    if (index !== -1) {
        this.list.splice(index, 1);
    } 
  }
Posted by: Guest on July-15-2021
5

typescript remove an item from array

myArray.splice(index, 1); // insert index and then amount to remove 
						  // from that index
Posted by: Guest on October-27-2020

Code answers related to "hoe to delete a value from an array in angular typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language