I attempted to utilize a forEach loop, but it's indicating that it's undefined for some reason.
Here is my code snippet:
var array: MoneyDTO[] = prices
array.forEach(function (money: MoneyDTO) {
if (money.currency == 'QTW') {
//Do something
}
});
However, the error message states that .currency is undefined.