Working on filtering an array of objects based on a certain property using the following code snippet:
if (payment == Payment.CREDIT_CARD) {
this.currenies.filter((currency: Currency) => currency.isFromEurope === true);
console.log(this.currencies)
}
Started with an initial currencies array containing 135 items. After filtering, I'm left with the same number of items, with at least 30 having isFromEurope set to true.