1const array1= ["cheese", "dough", "sauce", "pepperoni"]
2const array2= ["mozzarella", "peppers", "chicken", "cheese"]
3
4const isIncluded = array1.some(value => array2.includes(value))
5// true
6
7const values = array1.filter(value => array2.includes(value))
8// "cheese"
1let superSet = ['B', 'C', 'A', 'D'];
2let subSet = ['D', 'C'];
3let mixedSet = new Set([...superSet, ...subSet]);
4let isSubset = mixedSet.size == superSet.length