function searchfor3 arr nums var need nums length var now each nums fu

1
2
3
4
5
6
7
8
function searchfor3(arr, nums) {
var need = nums.length;
var now = 0;
$.each(nums, function (i, v) {
if (arr.indexOf(v) != -1) now++;
});
return (now == need);
}