JavaScript Sprawdź, czy elementy jednej tablicy są w drugiej
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)