function arrayIntersect(array1, array2) {
		var result = [];
		each(array1, function(item) {
			if (inArray(item, array2) !== -1) {
				result.push(item);
			}
		});
		return result.length ? result : null;
	}
function arrayIntersect(array1, array2) {
		var result = [];
		each(array1, function(item) {
			if (inArray(item, array2) !== -1) {
				result.push(item);
			}
		});
		return result.length ? result : null;
	}
function arrayIntersect ( array1 , array2 ) { var result = [ ] ; each ( array1 , function ( item ) { if ( inArray ( item , array2 ) !== - 1 ) { result . push ( item ) ; } } ) ; return result . length ? result : null ; }
Find intersection of two arrays.

@private
@method arrayIntersect
@param {Array} array1
@param {Array} array2
@return {Array} Intersection of two arrays or null if there is none
Find intersection of two arrays .