During the iteration process, I am facing a challenge where I need to modify certain values based on specific conditions. Here is the current loop setup:
response.result.forEach(item => {
this.tableModel.push(
new FolderSearchModel().map(item, this.resources)
);
});
To address this issue, I'm looking for a way to incorporate an if statement within the loop to alter or format the mapped value when a particular condition is met. For example:
if(item.element == "aa"){
item.element = "AA"
}