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.
Just for the fun of it, i've implemented something with Array.prototype.reduce() :
let areKeysPresent = function (sourceArray, referenceArray) { return sourceArray.reduce((acc, current) => acc & referenceArray.includes(current), true) }