JavaScript überprüfen, ob Elemente eines Arrays in einem anderen sind
const found = arr1.some(r=> arr2.includes(r))
Easy Earthworm
const found = arr1.some(r=> arr2.includes(r))
let superSet = ['B', 'C', 'A', 'D'];
let subSet = ['D', 'C'];
let mixedSet = new Set([...superSet, ...subSet]);
let isSubset = mixedSet.size == superSet.length
const found = arr1.some(r=> arr2.indexOf(r) >= 0)