array is not getting empty in method starting in angular 6 code example
Example: javascript empty array
var colors = ["red","blue","green"];
colors = []; //empty the array
var colors = ["red","blue","green"];
colors = []; //empty the array