how to delete all the element in the array typescript code example
Example: typescript remove an item from array
myArray.splice(index, 1); // insert index and then amount to remove
// from that index
myArray.splice(index, 1); // insert index and then amount to remove
// from that index