Last active
October 24, 2017 16:53
-
-
Save drewbrokke/65c9cbfbfeeea721edcf2dbc405de157 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intersectionArray = AArray.filter(arr1, function(item) { | |
if (!item) { | |
return false; | |
} | |
if (AArray.indexOf(arr2, item) !== -1) { | |
return true; | |
} | |
return false; | |
}); | |
return intersectionArray.length > 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment