Simple arrays intersect in JavaScript

Arrays intersection is a way of comparing content of two arrays. Making use of Array.filter and Array.includes methods, we will get the items existent in both arrays.
const shoppingList = ['🥓', '🧀', '🥚', '🥛'];
const refrigeratorContent = [
  '🍲', '🥗', '🥒', '🥓', '🧀', '🍓', 
  '🥑', '🍎', '🥚', '🍗', '🥛', '🥩'
];

const intersection = shoppingList.filter(element => refrigeratorContent.includes(element));
If we now compare the length of the resulted intersection array with our shoppingList, we will conclude that all items already exist in refrigeratorContent array.
console.log(intersection);
// => ►(4) ["🥓", "🧀", "🥚", "🥛"]
To make it easier to work with, if all we want is a Boolean, we can assign a constant as follows:
const result = intersection.length === shoppingList.length ? true : false;
console.log(result);
// => true
Let us take it further and only show only what must be bought from our shoppingList, by removing '🥛' from refrigeratorContent array:
const shoppingList = ['🥓', '🧀', '🥚', '🥛'];
const refrigeratorContent = [
  '🍲', '🥗', '🥒', '🥓', '🧀', '🍓', 
  '🥑', '🍎', '🥚', '🍗', '🥩'
];

const mustBuy = shoppingList.filter(element => refrigeratorContent.includes(element) ? null : element);
console.log(mustBuy);
//=> ►["🥛"]
Programming languages are always fun!