I do not know if the question should be directed to typescript or angular 2
how get return of forEach in angular 2?
I have the following:
let info = this.array.forEach((i, index) => {
.....
.....
return res;
});
console.log(info);
Has returned -> undefined
Does anyone know how to get this return?