[Vuejs]-Vue filter array A by array B

0๐Ÿ‘

โœ…

I got the solution:

if (this.vehicleGroup && this.tomTomGroupSelect.length !== 0) {

  vehicles = vehicles.filter((v) => {
    return this.tomTomGroupSelect.includes(v.properties.objectno);
  });
}

Leave a comment