0👍
Try this:
computed: {
filteredFlightsList() {
if (!optionsFilters.length) return this.flightsList;
return this.flightsList.filter((item) => {
return this.optionsFilters.every((option) => item[option]);
});
}
}
Source:stackexchange.com