tablica zawiera wiele JS
var containsAll = arr1.every(i => arr2.includes(i));
Clear Cardinal
var containsAll = arr1.every(i => arr2.includes(i));
function inArray(needle, haystack, matchAll = false) {
if (matchAll) {
return needle.every(i => haystack.includes(i));
} else {
return needle.some(i => haystack.includes(i));
}
}
let result = inArray(needle, haystack, true);