typescript delete element from array by index code example
Example 1: js remove if
ar = [1, 2, 3, 4];
ar = ar.filter(item => !(item > 3));
console.log(ar) // [1, 2, 3]
Example 2: typescript remove an item from array
myArray.splice(index, 1); // insert index and then amount to remove
// from that index