So, I\'m using Jquery and have two arrays both with multiple values and I want to check whether all the values in the first array exist in the second.
You could take a Set and check all items agains it.
const containsAll = (needles, haystack) => needles.every(Set.prototype.has, new Set(haystack)); console.log(containsAll([105, 112, 103], [106, 105, 103, 112]));