I see many answers about using ngFor when I search for this, but I understand ngFor. I\'m asking about the angular.forEach() constructor used in my Angular 1 contr
angular.forEach()
arrayData.forEach((key : any, val: any) => { key['index'] = val + 1; arrayData2.forEach((keys : any, vals :any) => { if (key.group_id == keys.id) { key.group_name = keys.group_name; } }) })