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.
A one-liner to test that all of the elements in arr1 exist in arr2...
arr1
arr2
With es6:
var containsAll = arr1.every(i => arr2.includes(i));
Without es6:
var containsAll = arr1.every(function (i) { return arr2.includes(i); });