Usuń wszystkie wartości z listy A, które są obecne na liście b.

function array_diff(a, b) {
  return a.filter(e => !b.includes(e));
}
Purple Team