var arr = [
[ {"c": 1},{"d": 2} ],
[ {"c": 2},{"d": 3} ]
];
var newArray = [];
arr.forEach(function(e){
e.forEach(function(e1){
newArray.push(e1);
});
})
console.log(newArray);
comboChange(event) { this.filterSearchForm.get('region').value; debugger; this.currentCities =[]; this.currentState = []; this.regionselection = []; this.filterSearchForm.patchValue({ state : '', city : '' }); this.isClose = false; if(!event) { this.isClose = true; console.log('dropdown is closed'); let arrayregion = this.filterSearchForm.value.region;
arrayregion.forEach((element, index) => { console.log(element)
this.regionselection += " " + element.name;
let array2 = element.states; array2.forEach((el) => { this.currentState.push(el); }); }); } console.log(this.currentState); }