Check out example codes for "typescript remove an item from array". It will help you in understanding the concepts better.

Code Example 1

myArray.splice(index, 1); // insert index and then amount to remove 
						  // from that index

Code Example 2

const index = myArray.indexOf(key, 0);
if (index > -1) {
   myArray.splice(index, 1);
}

Learn ReactJs, React Native from akashmittal.com