I am writing some typescript code and iterating an array. Inside the loop, I am trying to access \'this\' object to do some processing as:
console.log(\'befo
Try this:
myarray.days.forEach( (obj) => { console.log('before transform, this : ' + this); this.datePipe.transform... });