function arrayContainsAnotherArray(needle, haystack){
for(var i = 0; i < needle.length; i++){
if(haystack.indexOf(needle[i]) === -1)
return false;
}
return true;
}
Ответ 3
function arr(arr1,arr2)
{
for(var i=0;i<arr1.length;i++)
{
if($.inArray(arr1[i],arr2) ==-1)
//here it returns that arr1 value does not contain the arr2
else
// here it returns that arr1 value contains in arr2
}
}